2020-07-19 03:26:56 +00:00
|
|
|
<div class="topic_row{{if .Sticky}} topic_sticky{{else if .IsClosed}} topic_closed{{end}}{{if .CanMod}} can_mod{{end}}" data-tid="{{.ID}}">
|
2018-07-15 05:00:48 +00:00
|
|
|
<div class="rowitem topic_left passive datarow">
|
2018-06-24 13:49:29 +00:00
|
|
|
<span class="selector"></span>
|
2020-05-01 01:08:23 +00:00
|
|
|
<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}"height=64 alt="Avatar"title="{{.Creator.Name}}'s Avatar"aria-hidden="true"></a>
|
2018-06-24 13:49:29 +00:00
|
|
|
<span class="topic_inner_left">
|
2020-04-02 20:19:42 +00:00
|
|
|
<a class="rowtopic"href="{{.Link}}"itemprop="itemListElement"title="{{.Title}}"><span>{{.Title}}</span></a> {{if .ForumName}}<a class="rowsmall parent_forum"href="{{.ForumLink}}"title="{{.ForumName}}">{{.ForumName}}</a>{{end}}
|
2020-03-22 00:25:10 +00:00
|
|
|
<br><a class="rowsmall starter"href="{{.Creator.Link}}"title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
2018-06-24 13:49:29 +00:00
|
|
|
{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
|
2020-03-11 03:26:33 +00:00
|
|
|
{{if .IsClosed}}<span class="rowsmall topic_status_e topic_status_closed"title="{{lang "status.closed_tooltip"}}"> | 🔒︎</span>{{end}}
|
|
|
|
{{if .Sticky}}<span class="rowsmall topic_status_e topic_status_sticky"title="{{lang "status.pinned_tooltip"}}"> | 📍︎</span>{{end}}
|
2018-06-24 13:49:29 +00:00
|
|
|
</span>
|
|
|
|
{{/** TODO: Phase this out of Cosora and remove it **/}}
|
|
|
|
<div class="topic_inner_right rowsmall">
|
2020-03-09 10:37:41 +00:00
|
|
|
<span class="replyCount">{{.PostCount}}</span><br>
|
2018-06-24 13:49:29 +00:00
|
|
|
<span class="likeCount">{{.LikeCount}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="topic_middle">
|
|
|
|
<div class="topic_middle_inside rowsmall">
|
2018-09-26 07:46:30 +00:00
|
|
|
<span class="replyCount">{{.PostCount}} {{lang "topic_list.replies_suffix"}}</span>
|
|
|
|
<span class="likeCount">{{.LikeCount}} {{lang "topic_list.likes_suffix"}}</span>
|
|
|
|
<span class="viewCount">{{.ViewCount}} {{lang "topic_list.views_suffix"}}</span>
|
2018-06-24 13:49:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-15 05:00:48 +00:00
|
|
|
<div class="rowitem topic_right passive datarow">
|
2018-06-24 13:49:29 +00:00
|
|
|
<div class="topic_right_inside">
|
2020-04-02 20:19:42 +00:00
|
|
|
<a href="{{.LastUser.Link}}"><img src="{{.LastUser.MicroAvatar}}"height=64 alt="Avatar"title="{{.LastUser.Name}}'s Avatar"aria-hidden="true"></a>
|
2018-06-24 13:49:29 +00:00
|
|
|
<span>
|
2020-04-02 20:19:42 +00:00
|
|
|
<a href="{{.LastUser.Link}}"class="lastName"title="{{.LastUser.Name}}">{{.LastUser.Name}}</a><br>
|
|
|
|
<a href="{{.Link}}?page={{.LastPage}}{{if .LastReplyID}}#post-{{.LastReplyID}}{{end}}"class="rowsmall lastReplyAt"title="{{abstime .LastReplyAt}}">{{reltime .LastReplyAt}}</a>
|
2018-06-24 13:49:29 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-11 23:07:24 +00:00
|
|
|
</div>
|