cb58c1c83f
Added the Back to Site link to Nox's Control Panel. Added the panel_group_menu template and used it to de-dupe the group menu HTML. Fixed a potential race condition with dismiss alert. Fixed a strange bug where new alerts wouldn't appear. Fixed a race condition where client templates sometimes wouldn't load. Dramatically cut down on the number of DOM rebuilds for the alert list. Added some missing error handling for ajax page block loads. Fixed a bug where the dimiss alert endpoint wasn't sending a success payload. Made the register_might_be_machine phrase more descriptive. Added the panel_menu_aria phrase.
92 lines
4.2 KiB
HTML
92 lines
4.2 KiB
HTML
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="/panel/">{{lang "panel_menu_head"}}</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive">
|
|
<a href="/panel/users/">{{lang "panel_menu_users"}}</a> <a class="menu_stats" href="#">({{.Stats.Users}})</a>
|
|
</div>
|
|
<div class="rowitem passive">
|
|
<a href="/panel/groups/">{{lang "panel_menu_groups"}}</a> <a class="menu_stats" href="#">({{.Stats.Groups}})</a>
|
|
</div>
|
|
{{if .CurrentUser.Perms.ManageForums}}<div class="rowitem passive">
|
|
<a href="/panel/forums/">{{lang "panel_menu_forums"}}</a> <a class="menu_stats" href="#">({{.Stats.Forums}})</a>
|
|
</div>{{end}}
|
|
<div class="rowitem passive">
|
|
<a href="/panel/pages/">{{lang "panel_menu_pages"}}</a> <a class="menu_stats" href="#">({{.Stats.Pages}})</a>
|
|
</div>
|
|
{{if .CurrentUser.Perms.EditSettings}}<div class="rowitem passive">
|
|
<a href="/panel/settings/">{{lang "panel_menu_settings"}}</a> <a class="menu_stats" href="#">({{.Stats.Settings}})</a>
|
|
</div>
|
|
<div class="rowitem passive">
|
|
<a href="/panel/settings/word-filters/">{{lang "panel_menu_word_filters"}}</a> <a class="menu_stats" href="#">({{.Stats.WordFilters}})</a>
|
|
</div>{{end}}
|
|
{{if .CurrentUser.Perms.ManageThemes}}
|
|
<div class="rowitem passive">
|
|
<a href="/panel/themes/">{{lang "panel_menu_themes"}}</a> <a class="menu_stats" href="#">({{.Stats.Themes}})</a>
|
|
</div>
|
|
{{if eq .Zone "themes"}}
|
|
<div class="rowitem passive submenu"><a href="/panel/themes/menus/">{{lang "panel_menu_menus"}}</a></div>
|
|
<div class="rowitem passive submenu"><a href="/panel/themes/widgets/">{{lang "panel_menu_widgets"}}</a></div>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="#">{{lang "panel_menu_events"}}</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive">
|
|
<a href="/panel/analytics/views/">{{lang "panel_menu_statistics"}}</a>
|
|
</div>
|
|
{{if eq .Zone "analytics"}}
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/posts/">{{lang "panel_menu_statistics_posts"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/topics/">{{lang "panel_menu_statistics_topics"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/forums/">{{lang "panel_menu_statistics_forums"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/routes/">{{lang "panel_menu_statistics_routes"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/agents/">{{lang "panel_menu_statistics_agents"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/systems/">{{lang "panel_menu_statistics_systems"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/langs/">{{lang "panel_menu_statistics_languages"}}</a>
|
|
</div>
|
|
<div class="rowitem passive submenu">
|
|
<a href="/panel/analytics/referrers/">{{lang "panel_menu_statistics_referrers"}}</a>
|
|
</div>
|
|
{{end}}
|
|
<div class="rowitem passive">
|
|
<a href="/forum/{{.ReportForumID}}">{{lang "panel_menu_reports"}}</a> <a class="menu_stats" href="#">({{.Stats.Reports}})</a>
|
|
</div>
|
|
<div class="rowitem passive">
|
|
<a href="/panel/logs/mod/">{{lang "panel_menu_logs"}}</a>
|
|
</div>
|
|
{{if eq .Zone "logs"}}
|
|
<div class="rowitem passive submenu"><a href="/panel/logs/regs/">{{lang "panel_menu_logs_registrations"}}</a></div>
|
|
<div class="rowitem passive submenu"><a href="/panel/logs/mod/">{{lang "panel_menu_logs_moderators"}}</a></div>
|
|
{{if .CurrentUser.Perms.ViewAdminLogs}}<div class="rowitem passive submenu"><a>{{lang "panel_menu_logs_administrators"}}</a></div>{{end}}
|
|
{{end}}
|
|
</div>
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="#">{{lang "panel_menu_system"}}</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
{{if .CurrentUser.Perms.ManagePlugins}}<div class="rowitem passive">
|
|
<a href="/panel/plugins/">{{lang "panel_menu_plugins"}}</a>
|
|
</div>{{end}}
|
|
{{if .CurrentUser.IsSuperAdmin}}<div class="rowitem passive">
|
|
<a href="/panel/backups/">{{lang "panel_menu_backups"}}</a>
|
|
</div>{{end}}
|
|
{{if .CurrentUser.IsAdmin}}<div class="rowitem passive">
|
|
<a href="/panel/debug/">{{lang "panel_menu_debug"}}</a>
|
|
</div>{{end}}
|
|
</div>
|