This commit is contained in:
@@ -9,10 +9,13 @@
|
||||
<title>{{.Title}} · Hamkar</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
||||
<script src="/static/theme.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css">
|
||||
<script src="/static/workspace.js" defer></script>
|
||||
<!-- Vazirmatn-font-face.css is vendored locally for offline use. -->
|
||||
<link rel="stylesheet" href="/static/vendor/Vazirmatn-font-face.css">
|
||||
<link rel="stylesheet" href="/static/vendor/fontawesome.min.css">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<script src="/static/jalali-picker.js" defer></script>
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4" defer></script>
|
||||
<script src="/static/vendor/htmx.min.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
{{end}}
|
||||
@@ -34,7 +37,7 @@
|
||||
{{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>
|
||||
<label>Workspace<select name="workspace_id" aria-label="Switch workspace" data-workspace-switch>{{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}}">
|
||||
@@ -71,12 +74,8 @@
|
||||
</nav>
|
||||
<div class="sidebar-theme">{{template "theme-toggle" .}}<span>Appearance</span></div>
|
||||
<div class="sidebar-user">
|
||||
<span class="avatar">{{initial .User.DisplayName}}</span>
|
||||
<span><strong>{{.User.DisplayName}}</strong><small>{{.User.Role}}</small></span>
|
||||
<form method="post" action="/logout">
|
||||
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
||||
<button class="icon-button" title="Sign out" aria-label="Sign out">↗</button>
|
||||
</form>
|
||||
<a class="sidebar-profile-link" href="/profile" title="Open profile" aria-label="Open profile">{{if .User.AvatarURL}}<img class="avatar" src="{{.User.AvatarURL}}" alt="{{.User.DisplayName}}">{{else}}<span class="avatar">{{initial .User.DisplayName}}</span>{{end}}</a>
|
||||
<a class="sidebar-profile-details" href="/profile" title="Open profile"><strong>{{.User.DisplayName}}</strong><small>{{.User.Role}}</small></a>
|
||||
</div>
|
||||
</aside>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user