41c620b988
Fixed the indentation in alerts.go, Atom replaced the tabs with spaces for some reason x.x Made the friendly URL logic more flexible. Made the supermod menu item hiding more JS friendly. strconv is now an optional dependency for compiled template files. Revamped the profile template.
25 lines
1022 B
HTML
25 lines
1022 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{{.Title}}</title>
|
|
<link href="/static/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>
|
|
{{range .Header.Scripts}}
|
|
<script type="text/javascript" src="/static/{{.}}"></script>
|
|
{{end}}
|
|
<script type="text/javascript">var session = "{{.CurrentUser.Session}}";</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" />
|
|
</head>
|
|
<body>
|
|
<style>
|
|
{{if not .CurrentUser.Is_Super_Mod}}.supermod_only { display: none !important; }{{end}}
|
|
</style>
|
|
<div class="container">
|
|
{{template "menu.html" .}}
|
|
<div id="back"><div id="main" {{if .Header.Widgets.RightSidebar}}class="shrink_main"{{end}}>
|
|
{{range .Header.NoticeList}}<div class="alert">{{.}}</div>{{end}}
|