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.
32 lines
1.9 KiB
HTML
32 lines
1.9 KiB
HTML
{{template "header.html" . }}
|
|
|
|
{{if gt .Page 1}}<div id="prevFloat" class="prev_button"><a class="prev_link" href="/forum/{{.Forum.ID}}?page={{subtract .Page 1}}"><</a></div>{{end}}
|
|
{{if ne .LastPage .Page}}<link rel="prerender" href="/forum/{{.Forum.ID}}?page={{add .Page 1}}" />
|
|
<div id="nextFloat" class="next_button"><a class="next_link" href="/forum/{{.Forum.ID}}?page={{add .Page 1}}">></a></div>{{end}}
|
|
|
|
<div class="rowblock rowhead">
|
|
<div class="rowitem {{if ne .CurrentUser.ID 0}}has_opt{{end}}"><a>{{.Title}}</a>
|
|
</div>
|
|
{{if ne .CurrentUser.ID 0}}
|
|
{{if .CurrentUser.Perms.CreateTopic}}
|
|
<div class="opt create_topic_opt" title="Create Topic"><a href="/topics/create/{{.Forum.ID}}"></a></div>
|
|
{{else}}<div class="opt locked_opt" title="You don't have the permissions needed to create a topic"><a></a></div>{{end}}
|
|
<div style="clear: both;"></div>
|
|
{{end}}
|
|
</div>
|
|
<div id="forum_topic_list" class="rowblock topic_list">
|
|
{{range .ItemList}}<div class="rowitem passive datarow {{if .Sticky}}topic_sticky{{else if .Is_Closed}}topic_closed{{end}}" style="{{if .Avatar}}background-image: url({{.Avatar}});background-position: left;background-repeat: no-repeat;background-size: 64px;padding-left: 72px;{{end}}">
|
|
<span class="rowsmall" style="float: right;">
|
|
<span class="replyCount">{{.PostCount}} replies</span><br />
|
|
<span class="lastReplyAt">{{.LastReplyAt}}</span>
|
|
</span>
|
|
<span>
|
|
<a class="rowtopic" href="{{.Link}}">{{.Title}}</a>
|
|
<br /><a class="rowsmall" href="{{.UserLink}}">Starter: {{.CreatedByName}}</a>
|
|
{{if .Is_Closed}}<span class="rowsmall topic_status_e topic_status_closed" title="Status: Closed"> | 🔒︎{{end}}</span>
|
|
</span>
|
|
</div>
|
|
{{else}}<div class="rowitem passive">There aren't any topics in this forum yet.{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/{{.Forum.ID}}">Start one?</a>{{end}}</div>{{end}}
|
|
</div>
|
|
{{template "footer.html" . }}
|