github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_inner_menu.html (about)

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem"><a href="/panel/">{{lang "panel_menu_head"}}</a></div>
     3  </div>
     4  <div class="colstack_item rowmenu">
     5  	<div class="rowitem passive">
     6  		<a href="/panel/users/">{{lang "panel_menu_users"}}</a> <a class="menu_stats" href="#">({{.Stats.Users}})</a>
     7  	</div>
     8  	<div class="rowitem passive">
     9  		<a href="/panel/groups/">{{lang "panel_menu_groups"}}</a> <a class="menu_stats" href="#">({{.Stats.Groups}})</a>
    10  	</div>
    11  	{{if .CurrentUser.Perms.ManageForums}}<div class="rowitem passive">
    12  		<a href="/panel/forums/">{{lang "panel_menu_forums"}}</a> <a class="menu_stats" href="#">({{.Stats.Forums}})</a>
    13  	</div>{{end}}
    14  	<div class="rowitem passive">
    15  		<a href="/panel/pages/">{{lang "panel_menu_pages"}}</a> <a class="menu_stats" href="#">({{.Stats.Pages}})</a>
    16  	</div>
    17  	{{if .CurrentUser.Perms.EditSettings}}<div class="rowitem passive">
    18  		<a href="/panel/settings/">{{lang "panel_menu_settings"}}</a> <a class="menu_stats" href="#">({{.Stats.Settings}})</a>
    19  	</div>
    20  	<div class="rowitem passive">
    21  		<a href="/panel/settings/word-filters/">{{lang "panel_menu_word_filters"}}</a> <a class="menu_stats" href="#">({{.Stats.WordFilters}})</a>
    22  	</div>{{end}}
    23  	{{if .CurrentUser.Perms.ManageThemes}}
    24  	<div class="rowitem passive">
    25  		<a href="/panel/themes/">{{lang "panel_menu_themes"}}</a> <a class="menu_stats" href="#">({{.Stats.Themes}})</a>
    26  	</div>
    27  	{{if eq .Zone "themes"}}
    28  		<div class="rowitem passive submenu"><a href="/panel/themes/menus/">{{lang "panel_menu_menus"}}</a></div>
    29  		<div class="rowitem passive submenu"><a href="/panel/themes/widgets/">{{lang "panel_menu_widgets"}}</a></div>
    30  	{{end}}
    31  	{{end}}
    32  </div>
    33  <div class="colstack_item colstack_head">
    34  	<div class="rowitem"><a href="#">{{lang "panel_menu_events"}}</a></div>
    35  </div>
    36  <div class="colstack_item rowmenu">
    37  	<div class="rowitem passive">
    38  		<a href="/panel/analytics/views/">{{lang "panel_menu_stats"}}</a>
    39  	</div>
    40  	{{if eq .Zone "analytics"}}
    41  		<div class="rowitem passive submenu">
    42  			<a href="/panel/analytics/posts/">{{lang "panel_menu_stats_posts"}}</a>
    43  		</div>
    44  		<div class="rowitem passive submenu">
    45  			<a href="/panel/analytics/topics/">{{lang "panel_menu_stats_topics"}}</a>
    46  		</div>
    47  		<div class="rowitem passive submenu">
    48  			<a href="/panel/analytics/forums/">{{lang "panel_menu_stats_forums"}}</a>
    49  		</div>
    50  		<div class="rowitem passive submenu">
    51  			<a href="/panel/analytics/routes/">{{lang "panel_menu_stats_routes"}}</a>
    52  		</div>
    53  		<div class="rowitem passive submenu">
    54  			<a href="/panel/analytics/routes-perf/">{{lang "panel_menu_stats_routes_perf"}}</a>
    55  		</div>
    56  		<div class="rowitem passive submenu">
    57  			<a href="/panel/analytics/agents/">{{lang "panel_menu_stats_agents"}}</a>
    58  		</div>
    59  		<div class="rowitem passive submenu">
    60  			<a href="/panel/analytics/systems/">{{lang "panel_menu_stats_systems"}}</a>
    61  		</div>
    62  		<div class="rowitem passive submenu">
    63  			<a href="/panel/analytics/langs/">{{lang "panel_menu_stats_languages"}}</a>
    64  		</div>
    65  		<div class="rowitem passive submenu">
    66  			<a href="/panel/analytics/referrers/">{{lang "panel_menu_stats_referrers"}}</a>
    67  		</div>
    68  		<div class="rowitem passive submenu">
    69  			<a href="/panel/analytics/memory/">{{lang "panel_menu_stats_memory"}}</a>
    70  		</div>
    71  		<div class="rowitem passive submenu">
    72  			<a href="/panel/analytics/active-memory/">{{lang "panel_menu_stats_active_memory"}}</a>
    73  		</div>
    74  		<div class="rowitem passive submenu">
    75  			<a href="/panel/analytics/perf/">{{lang "panel_menu_stats_perf"}}</a>
    76  		</div>
    77  	{{end}}
    78  	<div class="rowitem passive">
    79  		<a href="/forum/{{.ReportForumID}}">{{lang "panel_menu_reports"}}</a> <a class="menu_stats" href="#">({{.Stats.Reports}})</a>
    80  	</div>
    81  	<div class="rowitem passive">
    82  		<a href="/panel/logs/mod/">{{lang "panel_menu_logs"}}</a>
    83  	</div>
    84  	{{if eq .Zone "logs"}}
    85  		<div class="rowitem passive submenu"><a href="/panel/logs/regs/">{{lang "panel_menu_logs_registrations"}}</a></div>
    86  		<div class="rowitem passive submenu"><a href="/panel/logs/mod/">{{lang "panel_menu_logs_moderators"}}</a></div>
    87  		{{if .CurrentUser.Perms.ViewAdminLogs}}<div class="rowitem passive submenu"><a href="/panel/logs/admin/">{{lang "panel_menu_logs_administrators"}}</a></div>{{end}}
    88  	{{end}}
    89  </div>
    90  <div class="colstack_item colstack_head">
    91  	<div class="rowitem"><a href="#">{{lang "panel_menu_system"}}</a></div>
    92  </div>
    93  <div class="colstack_item rowmenu">
    94  	{{if .CurrentUser.Perms.ManagePlugins}}<div class="rowitem passive">
    95  		<a href="/panel/plugins/">{{lang "panel_menu_plugins"}}</a>
    96  	</div>{{end}}
    97  	{{if .CurrentUser.IsSuperAdmin}}<div class="rowitem passive">
    98  		<a href="/panel/backups/">{{lang "panel_menu_backups"}}</a>
    99  	</div>{{end}}
   100  	{{if .CurrentUser.IsAdmin}}
   101  	<div class="rowitem passive">
   102  		<a href="/panel/debug/">{{lang "panel_menu_debug"}}</a>
   103  	</div>
   104  	{{if .DebugAdmin}}<div class="rowitem passive">
   105  		<a href="/panel/debug/tasks/">{{lang "panel_menu_debug"}}</a>
   106  	</div>{{end}}
   107  	{{end}}
   108  </div>