gosora/templates/forums.html
Azareal 9a93f799bf Added friendly URLs.
Added the Forum Store. Rewrote all the forum slice calls to use it.

Remapped sql.ErrNoRows to ErrNoRows for portability.
Removed a pointless column in the login query.
Revamped the tags and buttons on Tempra Simple, and on the profiles for the other themes.
Fixed a padding bug.
Tweaked the font sizes and padding in the Control Panel for Tempra Simple.
More progress with widgets.
2017-06-28 13:05:26 +01:00

25 lines
1.0 KiB
HTML

{{template "header.html" . }}
<div class="rowblock opthead">
<div class="rowitem rowhead"><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="/forum/{{.Slug}}.{{.ID}}" style="">{{.Name}}</a>
<br /><span class="rowsmall">{{.Desc}}</span>
</span>{{else if .LastTopicTime}}<span style="float: left;padding-top: 8px;font-size: 18px;">
<a href="/forum/{{.Slug}}.{{.ID}}">{{.Name}}</a>
</span>{{else}}<span style="float: left;">
<a href="/forum/{{.Slug}}.{{.ID}}">{{.Name}}</a>
</span>{{end}}
<span style="float: right;">
<a href="/topic/{{.LastTopicSlug}}.{{.LastTopicID}}" 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" . }}