9f2efce516
The router is now benchmarked. The custom router we'll use to replace it will also be benchmarked once it's completed. Added a placeholder page for the Control Panel Dashboard. Tightened some of the control panel route permission checks. Moved the Control Panel menu into it's own template. Added permission checks to the links on the Control Panel menu.
13 lines
882 B
HTML
13 lines
882 B
HTML
{{template "header.html" . }}
|
|
<div class="rowblock">
|
|
<div class="rowitem"><a>Topic List</a></div>
|
|
</div>
|
|
<div class="rowblock">
|
|
{{range .ItemList}}<div class="rowitem passive" style="{{ if .Avatar }}background-image: url({{ .Avatar }});background-position: left;background-repeat: no-repeat;background-size: 64px;padding-left: 72px;{{end}}{{ if .Sticky }}background-color: #FFFFCC;{{end}}">
|
|
<a href="/topic/{{.ID}}">{{.Title}}</a> {{if .Is_Closed}}<span class="username topic_status_e topic_status_closed" style="float: right;">closed</span>
|
|
{{else}}<span class="username hide_on_micro topic_status_e topic_status_open" style="float: right;">open</span>{{end}}
|
|
<span class="username hide_on_micro" style="border-right: 0;float: right;">Status</span>
|
|
</div>
|
|
{{else}}<div class="rowitem passive">There aren't any topics yet.</div>{{end}}
|
|
</div>
|
|
{{template "footer.html" . }} |