d976a192fb
Revamped the configuration system. If you have trouble installing this, try installing my fork of gopsutil with `go get` and delete the users_penalties table from the schema folder. That stuff will be cleaned up in the next commit. Fixed an issue with the links for the Uncategorised forum being broken. Swapped out NOW() for UTC_TIMESTAMP() in MySQL queries. We now get an error message when the server goes down for whatever reason. The template compiler now supports pointers. Swapped out shirou/gopsutil for a fork locked on an older and more stable commit of the same library. Fixed a bug where the preprocessor didn't play nice with empty CSS files. Added the site name to the navbar. Added more things to .gitignore Laid the foundations for the next commit.
24 lines
934 B
HTML
24 lines
934 B
HTML
{{template "header.html" . }}
|
|
<div class="rowblock opthead">
|
|
<div class="rowitem"><a>Forums</a></div>
|
|
</div>
|
|
<div class="rowblock">
|
|
{{range .ItemList}}<div class="rowitem {{if (.Desc) or (.LastTopicTime)}}datarow{{end}}">
|
|
{{if .Desc}}<span style="float: left;">
|
|
<a href="{{.Link}}" style="">{{.Name}}</a>
|
|
<br /><span class="rowsmall">{{.Desc}}</span>
|
|
</span>{{else}}<span style="float: left;">
|
|
<a href="{{.Link}}">{{.Name}}</a>
|
|
<br /><span class="rowsmall" style="font-style: italic;">No description</span>
|
|
</span>{{end}}
|
|
|
|
<span style="float: right;">
|
|
<a href="/topic/{{.LastTopicSlug}}" style="float: right;font-size: 14px;">{{.LastTopic}}</a>
|
|
{{if .LastTopicTime}}<br /><span class="rowsmall">{{.LastTopicTime}}</span>{{end}}
|
|
</span>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
{{else}}<div class="rowitem passive">You don't have access to any forums.</div>{{end}}
|
|
</div>
|
|
{{template "footer.html" . }}
|