abfe0a472a
Added the view counter, it currently collects data without exposing it to the admin. Added an API for scheduling tasks which run once every second and once every fifteen minutes. Added a generated map containing all the routes with the function names as keys. Added the request counter to the generated router. Added more ARIA Labels and moved various bits and pieces into the CSS files for flexibility. Removed a bunch of redundant avatar checks in the templates. Improved the mobile friendliness of Cosora. Fixed various issues in the other themes. Refactored the file listener. Gosora now resyncs newly created theme files not just modified ones. Gosora now resyncs renamed theme files not just modified ones.
66 lines
2.2 KiB
HTML
66 lines
2.2 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack">
|
|
<nav class="colstack_left" aria-label="The control panel menu">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="/panel/groups/edit/{{.ID}}">Group Editor</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/{{.ID}}">General</a></div>
|
|
<div class="rowitem passive"><a>Promotions</a></div>
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/perms/{{.ID}}">Permissions</a></div>
|
|
</div>
|
|
{{template "panel-inner-menu.html" . }}
|
|
</nav>
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{.Name}} Group</h1></div>
|
|
</div>
|
|
<form action="/panel/groups/edit/perms/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div id="panel_group" class="colstack_item rowlist formlist">
|
|
{{if .CurrentUser.Perms.EditGroupLocalPerms}}
|
|
{{range .LocalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div style="float: right;">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>Yes</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>No</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">Update Group</button></div>
|
|
</div>
|
|
</div>
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>Extended Permissions</h1></div>
|
|
</div>
|
|
<div class="colstack_item rowlist formlist">
|
|
{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
|
|
{{range .GlobalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div style="float: right;">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>Yes</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>No</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">Update Group</button></div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</main>
|
|
</div>
|
|
{{template "footer.html" . }}
|