gosora/templates/forums.html

30 lines
1.5 KiB
HTML
Raw Normal View History

{{template "header.html" . }}
<main id="forumsItemList"itemscope itemtype="http://schema.org/ItemList">
<div class="rowblock opthead">
<div class="rowitem"><h1 itemprop="name">{{lang "forums_head"}}</h1></div>
</div>
<div class="rowblock forum_list">
{{range .ItemList}}<div id="forum_{{.ID}}"class="rowitem{{if (.Desc) or (.LastTopic.Title)}} datarow{{end}}"itemprop="itemListElement"itemscope
itemtype="http://schema.org/ListItem">
<span class="forum_left shift_left">
2020-03-11 09:28:00 +00:00
<a href="{{.Link}}"itemprop="item">{{.Name}}</a><br>
{{if .Desc}}
2020-04-02 20:19:42 +00:00
<span class="rowsmall"itemprop="description">{{.Desc}}</span>
{{else}}
<span class="rowsmall forum_nodesc">{{lang "forums_no_description"}}</span>
{{end}}
</span>
<span class="forum_right shift_right">
2020-04-02 20:19:42 +00:00
{{if .LastReplyer.MicroAvatar}}<img class="extra_little_row_avatar"src="{{.LastReplyer.MicroAvatar}}"height=64 width=64 alt="Avatar"title="{{.LastReplyer.Name}}'s Avatar"aria-hidden="true">{{end}}
<span>
<a {{if .LastTopic.Link}}class="forum_poster"href="{{.LastTopic.Link}}"{{else}}class="forum_no_poster"{{end}}>{{if .LastTopic.Title}}{{.LastTopic.Title}}{{else}}{{lang "forums_none"}}{{end}}</a>
2020-04-02 20:19:42 +00:00
{{if .LastTopicTime}}<br><span class="rowsmall"title="{{abstime .LastTopic.LastReplyAt}}">{{.LastTopicTime}}</span>{{end}}
</span>
2020-03-11 09:28:00 +00:00
</span><div style="clear:both;"></div>
</div>
{{else}}<div class="rowitem passive rowmsg">{{lang "forums_no_forums"}}</div>{{end}}
</div>
</main>
{{template "footer.html" . }}