2019-05-28 03:29:31 +00:00
|
|
|
{{template "header.html" . }}
|
2020-03-11 03:26:33 +00:00
|
|
|
<main id="forumItemList" itemscope itemtype="http://schema.org/ItemList">
|
2020-03-09 05:16:44 +00:00
|
|
|
<link rel="canonical" href="//{{.Site.URL}}{{.Forum.Link}}{{if gt .Page 1}}?page={{.Page}}{{end}}"/>
|
2019-05-28 03:29:31 +00:00
|
|
|
|
|
|
|
<div id="forum_head_block" class="rowblock rowhead topic_list_title_block{{if .CurrentUser.Loggedin}} has_opt{{end}}">
|
|
|
|
<div class="rowitem forum_title">
|
|
|
|
<h1 itemprop="name">{{.Title}}</h1>
|
|
|
|
</div>
|
|
|
|
{{if .CurrentUser.Loggedin}}
|
2019-09-01 01:37:04 +00:00
|
|
|
<div class="optbox">
|
|
|
|
{{if .CurrentUser.Perms.CreateTopic}}
|
|
|
|
<div class="opt dummy_opt"></div>
|
|
|
|
<div class="pre_opt auto_hide"></div>
|
|
|
|
<div class="opt create_topic_opt" title="{{lang "topic_list.create_topic_tooltip"}}" aria-label="{{lang "topic_list.create_topic_aria"}}"><a class="create_topic_link" href="/topics/create/{{.Forum.ID}}"></a></div>
|
|
|
|
{{/** TODO: Add a permissions check for this **/}}
|
|
|
|
<div class="opt mod_opt" title="{{lang "topic_list.moderate_tooltip"}}">
|
|
|
|
<a class="moderate_link" href="#" aria-label="{{lang "topic_list.moderate_aria"}}"></a>
|
2019-05-28 03:29:31 +00:00
|
|
|
</div>
|
2019-09-01 01:37:04 +00:00
|
|
|
{{else}}<div class="opt locked_opt" title="{{lang "forum_locked_tooltip"}}" aria-label="{{lang "forum_locked_aria"}}"><a></a></div>{{end}}
|
2020-03-11 03:26:33 +00:00
|
|
|
</div><div style="clear:both;"></div>
|
2019-05-28 03:29:31 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{if .CurrentUser.Loggedin}}
|
|
|
|
{{template "topics_mod_floater.html"}}
|
|
|
|
|
|
|
|
{{if .CurrentUser.Perms.CreateTopic}}
|
2019-09-01 01:37:04 +00:00
|
|
|
<div id="forum_topic_create_form" class="rowblock topic_create_form quick_create_form auto_hide" aria-label="{{lang "quick_topic.aria"}}">
|
2019-08-31 22:07:34 +00:00
|
|
|
<form id="quick_post_form" enctype="multipart/form-data" action="/topic/create/submit/?s={{.CurrentUser.Session}}" method="post"></form>
|
2020-03-09 05:16:44 +00:00
|
|
|
<img class="little_row_avatar" src="{{.CurrentUser.MicroAvatar}}" height=64 alt="{{lang "quick_topic.avatar_alt"}}" title="{{lang "quick_topic.avatar_tooltip"}}"/>
|
2019-12-31 21:57:54 +00:00
|
|
|
<input form="quick_post_form" id="topic_board_input" name="board" value="{{.Forum.ID}}" type="hidden">
|
2019-05-28 03:29:31 +00:00
|
|
|
<div class="main_form">
|
|
|
|
<div class="topic_meta">
|
|
|
|
<div class="formrow topic_name_row real_first_child">
|
|
|
|
<div class="formitem">
|
2019-12-31 21:57:54 +00:00
|
|
|
<input form="quick_post_form" name="name" placeholder="{{lang "quick_topic.whatsup"}}" required>
|
2019-05-28 03:29:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "topics_quick_topic.html" . }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2019-12-31 21:57:54 +00:00
|
|
|
<div id="forum_topic_list" class="rowblock micro_grid" aria-label="{{lang "forum_list_aria"}}" style="grid-template-columns:repeat(auto-fit,minmax(130px,1fr));">
|
2019-06-01 12:31:48 +00:00
|
|
|
{{range .ItemList}}<div class="rowitem" data-tid="{{.ID}}">
|
2019-05-28 03:29:31 +00:00
|
|
|
<div>
|
2020-03-09 05:16:44 +00:00
|
|
|
<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement"><img src="{{.Content}}" style="width:100%;height:160px;"/></a>
|
2020-03-11 03:26:33 +00:00
|
|
|
<br><a class="rowsmall starter" href="{{.Link}}">{{.Title}}</a>
|
2019-05-28 03:29:31 +00:00
|
|
|
</div>
|
|
|
|
<!--<div class="topic_left passive datarow">
|
2020-03-09 05:16:44 +00:00
|
|
|
<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}" height=64 alt="Avatar" title="{{.Creator.Name}}'s Avatar" aria-hidden="true"/></a>
|
2019-05-28 03:29:31 +00:00
|
|
|
<span class="topic_inner_left">
|
|
|
|
<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement" title="{{.Title}}"><span>{{.Title}}</span></a>
|
2020-03-11 09:28:00 +00:00
|
|
|
<br><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
2019-05-28 03:29:31 +00:00
|
|
|
</span>
|
|
|
|
</div>-->
|
|
|
|
<!--<div class="topic_middle">
|
|
|
|
<div class="topic_middle_inside rowsmall">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="topic_right passive datarow">
|
|
|
|
<div class="topic_right_inside">
|
2020-03-09 05:16:44 +00:00
|
|
|
<a href="{{.LastUser.Link}}"><img src="{{.LastUser.MicroAvatar}}" height=64 alt="Avatar" title="{{.LastUser.Name}}'s Avatar" aria-hidden="true"/></a>
|
2019-05-28 03:29:31 +00:00
|
|
|
<span>
|
|
|
|
<a href="{{.LastUser.Link}}" class="lastName" style="font-size: 14px;" 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>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>-->
|
|
|
|
</div>{{else}}<div class="rowitem passive rowmsg">{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/{{.Forum.ID}}">{{lang "forum_start_one"}}</a>{{end}}{{end}}</div>{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "paginator.html" . }}
|
|
|
|
</main>
|
2020-03-09 05:16:44 +00:00
|
|
|
{{template "footer.html" . }}
|