github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/topics_topic.html (about)

     1  <div class="topic_row{{if .Sticky}} topic_sticky{{else if .IsClosed}} topic_closed{{end}}{{if .CanMod}} can_mod{{end}}"data-tid={{.ID}}>
     2  	<div class="rowitem topic_left passive datarow">
     3  		<span class="selector"></span>
     4  		<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}"alt="Avatar"title="{{.Creator.Name}}'s Avatar"aria-hidden="true"height=64></a>
     5  		<span class="topic_inner_left">
     6  			<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}}
     7  			<br><a class="rowsmall starter"href="{{.Creator.Link}}"title="{{.Creator.Name}}">{{.Creator.Name}}</a>
     8  			{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
     9  			{{if .IsClosed}}<span class="rowsmall topic_status_e topic_status_closed"title="{{lang "status.closed_tooltip"}}"> | &#x1F512;&#xFE0E</span>{{end}}
    10  			{{if .Sticky}}<span class="rowsmall topic_status_e topic_status_sticky"title="{{lang "status.pinned_tooltip"}}"> | &#x1F4CD;&#xFE0E</span>{{end}}
    11  		</span>
    12  		{{/** TODO: Phase this out of Cosora and remove it **/}}
    13  		<div class="topic_inner_right rowsmall">
    14  			<span class="replyCount">{{.PostCount}}</span><br>
    15  			<span class="likeCount">{{.LikeCount}}</span>
    16  		</div>
    17  	</div>
    18  	<div class="topic_middle">
    19  		<div class="topic_middle_inside rowsmall">
    20  			<span class="replyCount">{{.PostCount}}&nbsp;{{lang "topic_list.replies_suffix"}}</span>
    21  			<span class="likeCount">{{.LikeCount}}&nbsp;{{lang "topic_list.likes_suffix"}}</span>
    22  			<span class="viewCount">{{.ViewCount}}&nbsp;{{lang "topic_list.views_suffix"}}</span>
    23  		</div>
    24  	</div>
    25  	<div class="rowitem topic_right passive datarow">
    26  		<div class="topic_right_inside">
    27  			<a href="{{.LastUser.Link}}"><img src="{{.LastUser.MicroAvatar}}"alt="Avatar"title="{{.LastUser.Name}}'s Avatar"aria-hidden="true"height=64></a>
    28  			<span>
    29  				<a href="{{.LastUser.Link}}"class="lastName"title="{{.LastUser.Name}}">{{.LastUser.Name}}</a><br>
    30  				<a href="{{.Link}}?page={{.LastPage}}{{if .LastReplyID}}#post-{{.LastReplyID}}{{end}}"class="rowsmall lastReplyAt"title="{{abstime .LastReplyAt}}">{{reltime .LastReplyAt}}</a>
    31  			</span>
    32  		</div>
    33  	</div>
    34  </div>