3821e626ce
Add support for phrases in template files. Revamped every template to make them use phrases. Revamped every CSS file to make them use phrases. Tweaked the contributing document. We now use LogError instead of log.Fatal() in a few places to capture more stack traces. Fixed the suffixes on the topic and post count pages, as they were saying views instead of posts / topics. Split the paginator into it's own template. Refactored the theme logic to defer loading the static files to a later stage. Greatly improved the accessibility with a number of ARIA attributes in places where there were none. Removed the edit-topic and page templates. Renamed the panel-adminlogs template to panel_adminlogs. Non-existent phrases used by transpiled templates should now be logged. Fixed a bug where alertbox was plopped down multiple times on one page. The phrase placeholders are more informative now. Added the CurrentLanguagePackName and GetLanguagePackByName API functions. Notices are now shown when you delete, update, or create a forum.
29 lines
1.9 KiB
HTML
29 lines
1.9 KiB
HTML
<nav class="nav">
|
|
<div class="move_left">
|
|
<div class="move_right">
|
|
<ul>{{/** Add a menu manager **/}}
|
|
<li id="menu_overview" class="menu_left"><a href="/" rel="home">{{.Header.Site.ShortName}}</a></li>
|
|
<li id="menu_forums" class="menu_left"><a href="/forums/" aria-label="{{lang "menu_forums_aria"}}" title="{{lang "menu_forums_tooltip"}}"></a></li>
|
|
<li class="menu_left menu_topics"><a href="/" aria-label="{{lang "menu_topics_aria"}}" title="{{lang "menu_topics_tooltip"}}"></a></li>
|
|
<li id="general_alerts" class="menu_right menu_alerts">
|
|
<div class="alert_bell"></div>
|
|
<div class="alert_counter" aria-label="{{lang "menu_alert_counter_aria"}}"></div>
|
|
<div class="alert_aftercounter"></div>
|
|
<div class="alertList" aria-label="{{lang "menu_alert_list_aria"}}"></div>
|
|
</li>
|
|
{{if .CurrentUser.Loggedin}}
|
|
<li class="menu_left menu_account"><a href="/user/edit/critical/" aria-label="{{lang "menu_account_aria"}}" title="{{lang "menu_account_tooltip"}}"></a></li>
|
|
<li class="menu_left menu_profile"><a href="{{.CurrentUser.Link}}" aria-label="{{lang "menu_profile_aria"}}" title="{{lang "menu_profile_tooltip"}}"></a></li>
|
|
<li class="menu_left menu_panel menu_account supermod_only"><a href="/panel/" aria-label="{{lang "menu_panel_aria"}}" title="{{lang "menu_panel_tooltip"}}"></a></li>
|
|
<li class="menu_left menu_logout"><a href="/accounts/logout/?session={{.CurrentUser.Session}}" aria-label="{{lang "menu_logout_aria"}}" title="{{lang "menu_logout_tooltip"}}"></a></li>
|
|
{{else}}
|
|
<li class="menu_left menu_register"><a href="/accounts/create/" aria-label="{{lang "menu_register_aria"}}" title="{{lang "menu_register_tooltip"}}"></a></li>
|
|
<li class="menu_left menu_login"><a href="/accounts/login/" aria-label="{{lang "menu_login_aria"}}" title="{{lang "menu_login_tooltip"}}"></a></li>
|
|
{{end}}
|
|
<li class="menu_left menu_hamburger" title="{{lang "menu_hamburger_tooltip"}}"><a></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</nav>
|