27a4a74840
Added some visual and textual hints to make it clearer that Menu Items and Forums can be dragged. Added a hint to flush the page after pushing the <head> Added the notice client template and pushNotice client function. Used a pointer instead of a struct for AnalyticsTimeRange in the analytics routes. Caught a potential missing error check in InitPhrases. Use struct{} instead of bool in some of the user mapping maps for WebSockets to save space. Added the buildUserExprs function to eliminate a bit of duplication. Fixed a typo in ForumsEdit where it referenced a non-existent notice phrase. Client hooks can now sort of return things. Panel phrases are now fetched by init.js, but only in the control panel. Reduced the number of unused phrases loaded in both the front-end and the control panel. Plugin hyperdrive should handle Gzip better now. Added the panel.ForumsOrderSubmit route. Added the panel_hints_reorder phrase. Moved the panel_forums phrases into the panel. namespace. Added the panel.forums_order_updated phrase. Renamed the panel_themes_menus_item_edit_button_aria phrase to panel_themes_menus_items_edit_button_aria Renamed the panel_themes_menus_item_delete_button_aria phrase to panel_themes_menus_items_delete_button_aria Added the panel_themes_menus_items_update_button phrase. You will need to run the patcher / updater for this commit.
63 lines
3.2 KiB
HTML
63 lines
3.2 KiB
HTML
<!doctype html>
|
|
<html{{if .Header.IsoCode}} lang="{{.Header.IsoCode}}"{{end}}>
|
|
<head>
|
|
<title>{{.Title}} | {{.Header.Site.Name}}</title>
|
|
{{range .Header.Stylesheets}}
|
|
<link href="/static/{{.}}" rel="stylesheet" type="text/css">{{end}}
|
|
{{range .Header.PreScriptsAsync}}
|
|
<script async type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
|
<meta property="x-loggedin" content="{{.CurrentUser.Loggedin}}" />
|
|
<script type="text/javascript" src="/static/init.js?i=4"></script>
|
|
{{range .Header.ScriptsAsync}}
|
|
<script async type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
|
<script type="text/javascript" src="/static/jquery-3.1.1.min.js"></script>
|
|
{{range .Header.Scripts}}
|
|
<script type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
|
<meta name="viewport" content="width=device-width,initial-scale = 1.0, maximum-scale=1.0,user-scalable=no" />
|
|
{{if .Header.MetaDesc}}<meta name="description" content="{{.Header.MetaDesc}}" />{{end}}
|
|
{{/** TODO: Have page / forum / topic level tags and descriptions below as-well **/}}
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:site_name" content="{{.Header.Site.Name}}">
|
|
<meta property="og:title" content="{{.Title}} | {{.Header.Site.Name}}">
|
|
<meta name="twitter:title" content="{{.Title}} | {{.Header.Site.Name}}" />
|
|
{{if .OGDesc}}<meta property="og:description" content="{{.OGDesc}}" />
|
|
<meta property="twitter:description" content="{{.OGDesc}}" />{{end}}
|
|
{{if .GoogSiteVerify}}<meta name="google-site-verification" content="{{.GoogSiteVerify}}" />{{end}}
|
|
</head>
|
|
<body>
|
|
{{if not .CurrentUser.IsSuperMod}}<style>.supermod_only { display: none !important; }</style>{{end}}{{flush}}
|
|
<div id="container" class="container">
|
|
{{/**<!--<div class="navrow">-->**/}}
|
|
<div class="left_of_nav">{{dock "leftOfNav" .Header }}</div>
|
|
<nav class="nav">
|
|
<div class="move_left">
|
|
<div class="move_right">
|
|
<ul id="main_menu" class="zone_{{.Header.Zone}}">{{/** TODO: Have the theme control whether the long or short form of the name is used **/}}
|
|
<li id="menu_overview" class="menu_left"><a href="/" rel="home">{{if eq .Header.Theme.Name "nox"}}{{.Header.Site.Name}}{{else}}{{.Header.Site.ShortName}}{{end}}</a></li>
|
|
{{dock "topMenu" .Header }}
|
|
<li class="menu_left menu_hamburger" title="{{lang "menu_hamburger_tooltip"}}"><a></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</nav>
|
|
<div class="right_of_nav">{{/**<!--{{dock "rightOfNav" .Header }}-->**/}}
|
|
{{/** TODO: Make this a separate template and load it via the theme docks, here for now so we can rapidly prototype the Nox theme **/}}
|
|
{{if eq .Header.Theme.Name "nox"}}
|
|
<div class="user_box">
|
|
<img src="{{.CurrentUser.MicroAvatar}}" />
|
|
<div class="option_box">
|
|
<a href="{{.CurrentUser.Link}}" class="username">{{.CurrentUser.Name}}</a>
|
|
<span class="alerts">{{lang "alerts.no_alerts_short"}}</span>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{/**<!--</div>-->**/}}
|
|
<div class="midRow">
|
|
<div class="midLeft"></div>
|
|
<div id="back" class="zone_{{.Header.Zone}}{{if hasWidgets "rightSidebar" .Header }} shrink_main{{end}}">
|
|
<div id="main" >
|
|
<div class="alertbox initial_alertbox">{{range .Header.NoticeList}}
|
|
{{template "notice.html" . }}{{end}}
|
|
</div> |