]> code.octet-stream.net Git - broadcaster/blobdiff - server/templates/header.html
Clean up log entries
[broadcaster] / server / templates / header.html
index 49d734ff963bb96beca62063998c76e2eead8731..3d4af191f656149eadeee99a50e62f8baf1ca93c 100644 (file)
@@ -89,7 +89,7 @@
         border-width: 0px 1px 0px 0px;
       }
       .content {
         border-width: 0px 1px 0px 0px;
       }
       .content {
-        flex-grow: 3;
+        flex-grow: 30;
         padding: 5em;
         padding-top: 1em;
         overflow-wrap: break-word;
         padding: 5em;
         padding-top: 1em;
         overflow-wrap: break-word;
             <div class="menu-item {{if eq .SelectedMenu "files"}}selected{{end}}"><a href="/files/">Files</a></div>
             <div class="menu-item {{if eq .SelectedMenu "playlists"}}selected{{end}}"><a href="/playlists/">Playlists</a></div>
             <div class="menu-item {{if eq .SelectedMenu "radios"}}selected{{end}}"><a href="/radios/">Radios</a></div>
             <div class="menu-item {{if eq .SelectedMenu "files"}}selected{{end}}"><a href="/files/">Files</a></div>
             <div class="menu-item {{if eq .SelectedMenu "playlists"}}selected{{end}}"><a href="/playlists/">Playlists</a></div>
             <div class="menu-item {{if eq .SelectedMenu "radios"}}selected{{end}}"><a href="/radios/">Radios</a></div>
+            {{if .User.IsAdmin}}
             <div class="menu-item {{if eq .SelectedMenu "users"}}selected{{end}}"><a href="/users/">Users</a></div>
             <div class="menu-item {{if eq .SelectedMenu "users"}}selected{{end}}"><a href="/users/">Users</a></div>
+            {{end}}
             <div class="menu-item {{if eq .SelectedMenu "change-password"}}selected{{end}}"><a href="/change-password">Change Password</a></div>
             <div class="menu-item logout"><a href="/logout">Log Out</a></div>
             <div class="menu-item {{if eq .SelectedMenu "change-password"}}selected{{end}}"><a href="/change-password">Change Password</a></div>
             <div class="menu-item logout"><a href="/logout">Log Out</a></div>
-            {{if .Username}}
-            <div class="logged-in">Logged in as:<br><i>{{.Username}}</i></div>
+            {{if .User.Username}}
+            <div class="logged-in">Logged in as:<br><i>{{.User.Username}}</i></div>
             {{end}}
             <div class="menu-tail"><small><i>broadcaster-server vTODO</i></small></div>
         </div>
             {{end}}
             <div class="menu-tail"><small><i>broadcaster-server vTODO</i></small></div>
         </div>