github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/forums.html (about) 1 {{template "header.html" . }} 2 <main id="forumsItemList"itemscope itemtype="http://schema.org/ItemList"> 3 4 <div class="rowblock opthead"> 5 <div class="rowitem"><h1 itemprop="name">{{lang "forums_head"}}</h1></div> 6 </div> 7 <div class="rowblock forum_list"> 8 {{range .ItemList}}<div id="forum_{{.ID}}"class="rowitem{{if (.Desc) or (.LastTopic.Title)}} datarow{{end}}"itemprop="itemListElement"itemscope 9 itemtype="http://schema.org/ListItem"> 10 <span class="forum_left shift_left"> 11 <a href="{{.Link}}"itemprop="item">{{.Name}}</a><br> 12 {{if .Desc}} 13 <span class="rowsmall"itemprop="description">{{.Desc}}</span> 14 {{else}} 15 <span class="rowsmall forum_nodesc">{{lang "forums_no_desc"}}</span> 16 {{end}} 17 </span> 18 <span class="forum_right shift_right"> 19 {{if .LastReplyer.MicroAvatar}}<a href="{{.LastReplyer.Link}}"><img class="extra_little_row_avatar"src="{{.LastReplyer.MicroAvatar}}"height=64 width=64 alt="Avatar"title="{{.LastReplyer.Name}}'s Avatar"aria-hidden="true"></a>{{end}} 20 <span> 21 <a class={{if .LastTopic.Link}}"forum_poster"href="{{.LastTopic.Link}}"{{else}}"forum_no_poster"{{end}}>{{if .LastTopic.Title}}{{.LastTopic.Title}}{{else}}{{lang "forums_none"}}{{end}}</a> 22 {{/**{{if .LastTopicTime}}<br><span class="rowsmall"title="{{abstime .LastTopic.LastReplyAt}}">{{.LastTopicTime}}</span>{{end}}**/}} 23 <br><a href="{{.LastTopic.Link}}{{if ne .LastPage 1}}?page={{.LastPage}}{{end}}{{if .LastTopic.LastReplyID}}#post-{{.LastTopic.LastReplyID}}{{end}}"class="rowsmall lastReplyAt"title="{{abstime .LastTopic.LastReplyAt}}">{{.LastTopicTime}}</a> 24 </span> 25 </span><div style="clear:both;"></div> 26 </div> 27 {{else}}<div class="rowitem passive rowmsg">{{lang "forums_no_forums"}}</div>{{end}} 28 </div> 29 30 </main> 31 {{template "footer.html" . }}