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}}
|
2019-04-02 07:43:11 +00:00
|
|
|
<link href="/static/{{.}}" rel="stylesheet" type="text/css">{{end}}
|
2019-02-28 07:28:17 +00:00
|
|
|
{{range .Header.PreScriptsAsync}}
|
2019-04-02 07:43:11 +00:00
|
|
|
<script async type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
2018-08-13 10:34:00 +00:00
|
|
|
<meta property="x-loggedin" content="{{.CurrentUser.Loggedin}}" />
|
2019-05-06 04:04:00 +00:00
|
|
|
<script type="text/javascript" src="/static/init.js?i=6"></script>
|
2019-03-21 22:59:41 +00:00
|
|
|
{{range .Header.ScriptsAsync}}
|
2019-04-02 07:43:11 +00:00
|
|
|
<script async type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
2017-02-16 06:47:55 +00:00
|
|
|
<script type="text/javascript" src="/static/jquery-3.1.1.min.js"></script>
|
2017-06-16 10:41:30 +00:00
|
|
|
{{range .Header.Scripts}}
|
2019-04-02 07:43:11 +00:00
|
|
|
<script type="text/javascript" src="/static/{{.}}"></script>{{end}}
|
2016-12-24 13:14:40 +00:00
|
|
|
<meta name="viewport" content="width=device-width,initial-scale = 1.0, maximum-scale=1.0,user-scalable=no" />
|
2017-12-25 06:12:19 +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 **/}}
|
|
|
|
<meta property="og:type" content="website" />
|
2018-06-17 07:28:18 +00:00
|
|
|
<meta property="og:site_name" content="{{.Header.Site.Name}}">
|
|
|
|
<meta property="og:title" content="{{.Title}} | {{.Header.Site.Name}}">
|
2018-06-30 03:40:50 +00:00
|
|
|
<meta name="twitter:title" content="{{.Title}} | {{.Header.Site.Name}}" />
|
2019-02-24 08:02:00 +00:00
|
|
|
{{if .OGDesc}}<meta property="og:description" content="{{.OGDesc}}" />
|
|
|
|
<meta property="twitter:description" content="{{.OGDesc}}" />{{end}}
|
2019-02-28 07:28:17 +00:00
|
|
|
{{if .GoogSiteVerify}}<meta name="google-site-verification" content="{{.GoogSiteVerify}}" />{{end}}
|
2019-05-08 05:26:38 +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-04-27 06:32:26 +00:00
|
|
|
{{if not .CurrentUser.IsSuperMod}}<style>.supermod_only { display: none !important; }</style>{{end}}{{flush}}
|
2019-04-02 00:59:29 +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">
|
2019-04-02 00:59:29 +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 **/}}
|
2018-05-27 09:36:35 +00:00
|
|
|
<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 }}
|
|
|
|
<li class="menu_left menu_hamburger" title="{{lang "menu_hamburger_tooltip"}}"><a></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
</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">
|
2018-11-15 01:01:26 +00:00
|
|
|
<img src="{{.CurrentUser.MicroAvatar}}" />
|
2018-05-27 09:36:35 +00:00
|
|
|
<div class="option_box">
|
2018-09-20 12:39:03 +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>
|
2019-02-28 09:31:13 +00:00
|
|
|
<div id="back" class="zone_{{.Header.Zone}}{{if hasWidgets "rightSidebar" .Header }} shrink_main{{end}}">
|
2018-05-27 09:36:35 +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>
|