2016-12-02 07:38:54 +00:00
|
|
|
<!doctype html>
|
2019-04-09 07:21:00 +00:00
|
|
|
<html{{if .Header.IsoCode}} lang="{{.Header.IsoCode}}"{{end}}>
|
2016-12-02 07:38:54 +00:00
|
|
|
<head>
|
Added Quick Topic.
Added Attachments.
Added Attachment Media Embeds.
Renamed a load of *Store and *Cache methods to reduce the amount of unneccesary typing.
Added petabytes as a unit and cleaned up a few of the friendly units.
Refactored the username change logic to make it easier to maintain.
Refactored the avatar change logic to make it easier to maintain.
Shadow now uses CSS Variables for most of it's colours. We have plans to transpile this to support older browsers later on!
Snuck some CSS Variables into Tempra Conflux.
Added the GroupCache interface to MemoryGroupStore.
Added the Length method to MemoryGroupStore.
Added support for a site short name.
Added the UploadFiles permission.
Renamed more functions.
Fixed the background for the left gutter on the postbit for Tempra Simple and Shadow.
Added support for if statements operating on int8, int16, int32, int32, int64, uint, uint8, uint16, uint32, uint64, float32, and float64 for the template compiler.
Added support for if statements operating on slices and maps for the template compiler.
Fixed a security exploit in reply editing.
Fixed a bug in the URL detector in the parser where it couldn't find URLs with non-standard ports.
Fixed buttons having blue outlines on focus on Shadow.
Refactored the topic creation logic to make it easier to maintain.
Made a few responsive fixes, but there's still more to do in the following commits!
2017-10-05 10:20:28 +00:00
|
|
|
<title>{{.Title}} | {{.Header.Site.Name}}</title>
|
2017-06-16 10:41:30 +00:00
|
|
|
{{range .Header.Stylesheets}}
|
2020-07-31 05:33:29 +00:00
|
|
|
<link href="{{.Name}}"rel="stylesheet"type="text/css"{{if .Hash}}integrity="sha256-{{.Hash}}"{{end}}>{{end}}
|
2019-02-28 07:28:17 +00:00
|
|
|
{{range .Header.PreScriptsAsync}}
|
2020-07-31 05:33:29 +00:00
|
|
|
<script async src="{{.Name}}"{{if .Hash}}integrity="sha256-{{.Hash}}"{{end}}></script>{{end}}
|
2020-03-22 23:14:08 +00:00
|
|
|
{{if .CurrentUser.Loggedin}}<meta property="x-mem"content="1">{{end}}
|
2020-07-30 08:10:29 +00:00
|
|
|
<script src="{{res "init.js"}}"></script>
|
2019-03-21 22:59:41 +00:00
|
|
|
{{range .Header.ScriptsAsync}}
|
2020-07-31 05:33:29 +00:00
|
|
|
<script async src="{{.Name}}"{{if .Hash}}integrity="sha256-{{.Hash}}"{{end}}></script>{{end}}
|
2020-07-30 08:10:29 +00:00
|
|
|
<script src="{{res "jquery-3.1.1.min.js"}}"></script>
|
2017-06-16 10:41:30 +00:00
|
|
|
{{range .Header.Scripts}}
|
2020-07-31 05:33:29 +00:00
|
|
|
<script src="{{.Name}}"{{if .Hash}}integrity="sha256-{{.Hash}}"{{end}}></script>{{end}}
|
2020-04-02 07:39:49 +00:00
|
|
|
<meta name="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
2020-03-27 23:10:54 +00:00
|
|
|
{{if .Header.MetaDesc}}<meta name="description"content="{{.Header.MetaDesc}}">{{end}}
|
2018-06-30 03:40:50 +00:00
|
|
|
{{/** TODO: Have page / forum / topic level tags and descriptions below as-well **/}}
|
2020-03-27 23:10:54 +00:00
|
|
|
<meta property="og:type"content="website">
|
2020-03-11 07:08:27 +00:00
|
|
|
<meta property="og:site_name"content="{{.Header.Site.Name}}">
|
|
|
|
<meta property="og:title"content="{{.Title}} | {{.Header.Site.Name}}">
|
2020-03-27 23:10:54 +00:00
|
|
|
<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}}
|
2020-04-02 07:39:49 +00:00
|
|
|
<link rel="search"type="application/opensearchdescription+xml"title="{{.Header.Site.Name}}"href="/opensearch.xml">
|
2016-12-02 07:38:54 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2019-05-12 02:23:48 +00:00
|
|
|
{{/**{{if not .CurrentUser.IsSuperMod}}<style>.supermod_only { display: none !important; }</style>{{end}}**/}}{{flush}}
|
2020-04-02 07:39:49 +00:00
|
|
|
<div id="container"class="container">
|
2018-11-28 21:46:53 +00:00
|
|
|
{{/**<!--<div class="navrow">-->**/}}
|
2018-04-23 08:38:25 +00:00
|
|
|
<div class="left_of_nav">{{dock "leftOfNav" .Header }}</div>
|
|
|
|
<nav class="nav">
|
|
|
|
<div class="move_left">
|
|
|
|
<div class="move_right">
|
2020-04-02 07:39:49 +00:00
|
|
|
<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>
|
2018-04-23 08:38:25 +00:00
|
|
|
{{dock "topMenu" .Header }}
|
2020-04-02 07:39:49 +00:00
|
|
|
<li class="menu_left menu_hamburger"title="{{lang "menu_hamburger_tooltip"}}"><a></a></li>
|
2018-04-23 08:38:25 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-03-04 10:09:39 +00:00
|
|
|
</div><div style="clear:both;"></div>
|
2018-04-23 08:38:25 +00:00
|
|
|
</nav>
|
2018-11-26 05:08:10 +00:00
|
|
|
<div class="right_of_nav">{{/**<!--{{dock "rightOfNav" .Header }}-->**/}}
|
2018-05-27 09:36:35 +00:00
|
|
|
{{/** 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">
|
2020-03-22 02:37:32 +00:00
|
|
|
<img src="{{.CurrentUser.MicroAvatar}}">
|
2018-05-27 09:36:35 +00:00
|
|
|
<div class="option_box">
|
2020-03-11 07:08:27 +00:00
|
|
|
<a href="{{.CurrentUser.Link}}"class="username">{{.CurrentUser.Name}}</a>
|
2018-12-14 04:08:53 +00:00
|
|
|
<span class="alerts">{{lang "alerts.no_alerts_short"}}</span>
|
2018-05-27 09:36:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-04-23 08:38:25 +00:00
|
|
|
</div>
|
2018-11-28 21:46:53 +00:00
|
|
|
{{/**<!--</div>-->**/}}
|
2018-05-27 09:36:35 +00:00
|
|
|
<div class="midRow">
|
|
|
|
<div class="midLeft"></div>
|
2020-04-02 07:39:49 +00:00
|
|
|
<div id="back"class="zone_{{.Header.Zone}}{{if hasWidgets "rightSidebar" .Header }} shrink_main{{end}}">
|
2020-03-09 10:37:41 +00:00
|
|
|
<div id="main">
|
2018-06-17 07:28:18 +00:00
|
|
|
<div class="alertbox initial_alertbox">{{range .Header.NoticeList}}
|
2018-05-27 09:36:35 +00:00
|
|
|
{{template "notice.html" . }}{{end}}
|
|
|
|
</div>
|