This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
<span>Hamkar<small>Team presence</small></span>
|
||||
</a>
|
||||
<nav>
|
||||
{{if .Workspace.ID}}
|
||||
<form method="post" action="/workspace/switch" class="workspace-switcher">
|
||||
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
||||
<label>Workspace<select name="workspace_id" onchange="this.form.submit()">{{range .Workspaces}}<option value="{{.ID}}" {{if eq .ID $.Workspace.ID}}selected{{end}}>{{.Name}}</option>{{end}}</select></label>
|
||||
</form>
|
||||
{{end}}
|
||||
<a href="/" class="{{if eq .SelectedSection "dashboard"}}active{{end}}">
|
||||
<span class="nav-icon">⌂</span> Overview
|
||||
</a>
|
||||
@@ -55,6 +61,9 @@
|
||||
<a href="/admin/users" class="{{if eq .SelectedSection "users"}}active{{end}}">
|
||||
<span class="nav-icon">◎</span> Teammates
|
||||
</a>
|
||||
<a href="/admin/workspaces" class="{{if eq .SelectedSection "workspaces"}}active{{end}}">
|
||||
<span class="nav-icon">▣</span> Workspaces
|
||||
</a>
|
||||
<a href="/reports" class="{{if eq .SelectedSection "reports"}}active{{end}}">
|
||||
<span class="nav-icon">↧</span> Reports
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user