7be011a30d
The topic list cache can handle more groups now, but don't go too crazy with groups (e.g. thousands of them). Make the suspicious request logs more descriptive. Added the phrases API endpoint. Split the template phrases up by prefix, more work on this coming up. Removed #dash_saved and part of #dash_username. Removed some temporary artifacts from trying to implement FA5 in Nox. Removed some commented CSS. Fixed template artifact deletion on Windows. Tweaked HTTPSRedirect to make it more compact. Fixed NullUserCache not complying with the expectations for BulkGet. Swapped out a few RunVhook calls for more appropriate RunVhookNoreturn calls. Removed a few redundant IsAdmin checks when IsMod would suffice. Commented out a few pushers. Desktop notification permission requests are no longer served to guests. Split topics.html into topics.html and topics_topic.html RunThemeTemplate should now fallback to interpreted templates properly when the transpiled variants aren't avaialb.e Changed TopicsRow.CreatedAt from a string to a time.Time Added SkipTmplPtrMap to CTemplateConfig. Added SetBuildTags to CTemplateSet. A bit more data is dumped when something goes wrong while transpiling templates now. topics_topic, topic_posts, and topic_alt_posts are now transpiled for the client, although not all of them are ready to be served to the client yet. Client rendered templates now support phrases. Client rendered templates now support loops. Fixed loadAlerts in global.js Refactored some of the template initialisation code to make it less repetitive. Split topic.html into topic.html and topic_posts.html Split topic_alt.html into topic_alt.html and topic_alt_posts.html Added comments for PollCache. Fixed a data race in the MemoryPollCache. The writer is now closed properly in WsHubImpl.broadcastMessage. Fixed a potential deadlock in WsHubImpl.broadcastMessage. Removed some old commented code in websockets.go Added the DisableLiveTopicList config setting.
62 lines
2.7 KiB
HTML
62 lines
2.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{{.Title}} | {{.Header.Site.Name}}</title>
|
|
<link href="/static/{{.Header.Theme.Name}}/main.css" rel="stylesheet" type="text/css">
|
|
{{range .Header.Stylesheets}}
|
|
<link href="/static/{{.}}" rel="stylesheet" type="text/css">
|
|
{{end}}
|
|
<script type="text/javascript" src="/static/jquery-3.1.1.min.js"></script>
|
|
<script type="text/javascript" src="/static/chartist/chartist.min.js"></script>
|
|
{{range .Header.Scripts}}
|
|
<script type="text/javascript" src="/static/{{.}}"></script>
|
|
{{end}}
|
|
<script type="text/javascript">
|
|
var session = "{{.CurrentUser.Session}}";
|
|
var loggedIn = {{.CurrentUser.Loggedin}};
|
|
var siteURL = "{{.Header.Site.URL}}";
|
|
var maxRequestSize = "{{.Header.Site.MaxRequestSize}}";
|
|
</script>
|
|
<script type="text/javascript" src="/static/global.js"></script>
|
|
<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}}
|
|
<meta property="og:site_name" content="{{.Header.Site.Name}}">
|
|
<meta property="og:title" content="{{.Title}} | {{.Header.Site.Name}}">
|
|
</head>
|
|
<body>
|
|
{{if not .CurrentUser.IsSuperMod}}<style>.supermod_only { display: none !important; }</style>{{end}}
|
|
<div 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>{{/** 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.Avatar}}" />
|
|
<div class="option_box">
|
|
<span class="username">{{.CurrentUser.Name}}</span>
|
|
<span class="alerts">21 new alerts</span>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<!--</div>-->
|
|
<div class="midRow">
|
|
<div class="midLeft"></div>
|
|
<div id="back" class="zone_{{.Header.Zone}}{{if .Header.Widgets.RightSidebar}} shrink_main{{end}}">
|
|
<div id="main" >
|
|
<div class="alertbox initial_alertbox">{{range .Header.NoticeList}}
|
|
{{template "notice.html" . }}{{end}}
|
|
</div> |