10a0c62823
We now track the views on a per-route basis. We have plans for an admin UI for this, global views, etc. which will come in a future commit. The local error JSON is now properly formed. Fixed an outdated line in topic.go which was using the old cache system. We now use fuzzy dates for relative times between three months ago and a year ago. Added the super admin middleware and the associated tests. Added the route column to the viewchunks table. Added more alt attributes to images. Added a few missing ARIA attributes. Began refactoring the route generator to use text/template instead of generating everything procedurally. Began work on per-topic view counts.
44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack">
|
|
<nav class="colstack_left" aria-label="The control panel menu">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="/panel/logs/mod/">Logs</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive"><a href="/panel/logs/mod/">Moderation Logs</a></div>
|
|
{{if .CurrentUser.Perms.ViewAdminLogs}}<div class="rowitem passive"><a>Administration Logs</a></div>{{end}}
|
|
</div>
|
|
{{template "panel-inner-menu.html" . }}
|
|
</nav>
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>Administration Logs</h1></div>
|
|
</div>
|
|
<div id="panel_adminlogs" class="colstack_item rowlist">
|
|
{{range .Logs}}
|
|
<div class="rowitem panel_compactrow">
|
|
<span style="float: left;">
|
|
<span>{{.Action}}</span><br />
|
|
<small style="margin-left: 2px;font-size: 12px;">{{.IPAddress}}</small>
|
|
</span>
|
|
<span class="to_right">
|
|
<span style="font-size: 14px;">{{.DoneAt}}</span>
|
|
</span>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{if gt .LastPage 1}}
|
|
<div class="pageset">
|
|
{{if gt .Page 1}}<div class="pageitem"><a href="?page={{subtract .Page 1}}" aria-label="Previous Page">Prev</a></div>{{end}}
|
|
{{range .PageList}}
|
|
<div class="pageitem"><a href="?page={{.}}" aria-label="Page {{.}}">{{.}}</a></div>
|
|
{{end}}
|
|
{{if ne .LastPage .Page}}<div class="pageitem"><a href="?page={{add .Page 1}}" aria-label="Next Page">Next</a></div>{{end}}
|
|
</div>
|
|
{{end}}
|
|
</main>
|
|
|
|
</div>
|
|
{{template "footer.html" . }}
|