2016-12-03 13:45:08 +00:00
|
|
|
{{template "header.html" . }}
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2020-03-11 03:26:33 +00:00
|
|
|
<main id="forumItemList" itemscope itemtype="http://schema.org/ItemList">
|
|
|
|
|
2020-04-03 02:09:43 +00:00
|
|
|
{{if gt .Page 1}}<div id="prevFloat"class="prev_button"><a class="prev_link"aria-label="{{lang "paginator.prev_page_aria"}}" rel="prev"href="{{.Forum.Link}}?page={{subtract .Page 1}}">{{lang "paginator.less_than"}}</a></div>{{end}}
|
|
|
|
{{if ne .LastPage .Page}}<div id="nextFloat"class="next_button"><a class="next_link"aria-label="{{lang "paginator.next_page_aria"}}" rel="next"href="{{.Forum.Link}}?page={{add .Page 1}}">{{lang "paginator.greater_than"}}</a></div>{{end}}
|
|
|
|
{{if not .CurrentUser.Loggedin}}<link rel="canonical"href="//{{.Site.URL}}{{.Forum.Link}}{{if gt .Page 1}}?page={{.Page}}{{end}}">{{end}}
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2018-12-08 06:49:14 +00:00
|
|
|
<div id="forum_head_block" class="rowblock rowhead topic_list_title_block{{if .CurrentUser.Loggedin}} has_opt{{end}}">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="rowitem forum_title">
|
2017-12-27 23:38:37 +00:00
|
|
|
<h1 itemprop="name">{{.Title}}</h1>
|
2017-10-21 00:27:47 +00:00
|
|
|
</div>
|
2018-11-28 21:46:53 +00:00
|
|
|
{{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>
|
2020-04-03 02:09:43 +00:00
|
|
|
<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>
|
2019-09-01 01:37:04 +00:00
|
|
|
{{/** TODO: Add a permissions check for this **/}}
|
2020-04-03 02:09:43 +00:00
|
|
|
<div class="opt mod_opt"title="{{lang "topic_list.moderate_tooltip"}}">
|
2019-09-01 01:37:04 +00:00
|
|
|
<a class="moderate_link" href="#" aria-label="{{lang "topic_list.moderate_aria"}}"></a>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
2020-04-03 02:09:43 +00:00
|
|
|
{{else}}<div class="opt locked_opt"title="{{lang "forum_locked_tooltip"}}" aria-label="{{lang "forum_locked_aria"}}"><a></a></div>{{end}}
|
2019-09-01 01:37:04 +00:00
|
|
|
</div>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
{{end}}
|
2017-10-30 09:57:08 +00:00
|
|
|
</div>
|
2018-11-28 21:46:53 +00:00
|
|
|
{{if .CurrentUser.Loggedin}}
|
2018-12-27 05:42:41 +00:00
|
|
|
{{template "topics_mod_floater.html"}}
|
|
|
|
|
2017-11-13 09:23:43 +00:00
|
|
|
{{if .CurrentUser.Perms.CreateTopic}}
|
2020-04-03 02:09:43 +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-22 02:37:32 +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">
|
2017-11-13 09:23:43 +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>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-10 05:52:26 +00:00
|
|
|
{{template "topics_quick_topic.html" . }}
|
Added Quick Topic.
Added Attachments.
Added Attachment Media Embeds.
Renamed a load of *Store and *Cache methods to reduce the amount of unneccesary typing.
Added petabytes as a unit and cleaned up a few of the friendly units.
Refactored the username change logic to make it easier to maintain.
Refactored the avatar change logic to make it easier to maintain.
Shadow now uses CSS Variables for most of it's colours. We have plans to transpile this to support older browsers later on!
Snuck some CSS Variables into Tempra Conflux.
Added the GroupCache interface to MemoryGroupStore.
Added the Length method to MemoryGroupStore.
Added support for a site short name.
Added the UploadFiles permission.
Renamed more functions.
Fixed the background for the left gutter on the postbit for Tempra Simple and Shadow.
Added support for if statements operating on int8, int16, int32, int32, int64, uint, uint8, uint16, uint32, uint64, float32, and float64 for the template compiler.
Added support for if statements operating on slices and maps for the template compiler.
Fixed a security exploit in reply editing.
Fixed a bug in the URL detector in the parser where it couldn't find URLs with non-standard ports.
Fixed buttons having blue outlines on focus on Shadow.
Refactored the topic creation logic to make it easier to maintain.
Made a few responsive fixes, but there's still more to do in the following commits!
2017-10-05 10:20:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-13 09:23:43 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2019-02-28 07:28:17 +00:00
|
|
|
<div id="forum_topic_list" class="rowblock topic_list single_forum" aria-label="{{lang "forum_list_aria"}}">
|
2018-07-15 05:00:48 +00:00
|
|
|
{{range .ItemList}}<div class="topic_row{{if .Sticky}} topic_sticky{{else if .IsClosed}} topic_closed{{end}}" data-tid="{{.ID}}">
|
|
|
|
<div class="rowitem topic_left passive datarow">
|
2017-11-13 09:23:43 +00:00
|
|
|
<span class="selector"></span>
|
2020-03-22 02:37:32 +00:00
|
|
|
<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}" height=64 alt="Avatar"title="{{.Creator.Name}}'s Avatar"aria-hidden="true"></a>
|
2017-11-13 09:23:43 +00:00
|
|
|
<span class="topic_inner_left">
|
2020-04-03 02:09:43 +00:00
|
|
|
<a class="rowtopic"href="{{.Link}}"itemprop="itemListElement"title="{{.Title}}"><span>{{.Title}}</span></a>
|
|
|
|
<br><a class="rowsmall starter"href="{{.Creator.Link}}"title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
2017-11-13 09:23:43 +00:00
|
|
|
{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
|
2020-04-03 02:09:43 +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}}
|
2017-11-13 09:23:43 +00:00
|
|
|
</span>
|
2018-05-27 09:36:35 +00:00
|
|
|
{{/** TODO: Phase this out of Cosora and remove it **/}}
|
|
|
|
<div class="topic_inner_right rowsmall">
|
2020-03-11 03:26:33 +00:00
|
|
|
<span class="replyCount">{{.PostCount}}</span><br>
|
2017-11-13 09:23:43 +00:00
|
|
|
<span class="likeCount">{{.LikeCount}}</span>
|
2018-05-27 09:36:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="topic_middle">
|
2018-11-12 09:38:46 +00:00
|
|
|
<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>
|
2018-05-27 09:36:35 +00:00
|
|
|
</div>
|
Added Quick Topic.
Added Attachments.
Added Attachment Media Embeds.
Renamed a load of *Store and *Cache methods to reduce the amount of unneccesary typing.
Added petabytes as a unit and cleaned up a few of the friendly units.
Refactored the username change logic to make it easier to maintain.
Refactored the avatar change logic to make it easier to maintain.
Shadow now uses CSS Variables for most of it's colours. We have plans to transpile this to support older browsers later on!
Snuck some CSS Variables into Tempra Conflux.
Added the GroupCache interface to MemoryGroupStore.
Added the Length method to MemoryGroupStore.
Added support for a site short name.
Added the UploadFiles permission.
Renamed more functions.
Fixed the background for the left gutter on the postbit for Tempra Simple and Shadow.
Added support for if statements operating on int8, int16, int32, int32, int64, uint, uint8, uint16, uint32, uint64, float32, and float64 for the template compiler.
Added support for if statements operating on slices and maps for the template compiler.
Fixed a security exploit in reply editing.
Fixed a bug in the URL detector in the parser where it couldn't find URLs with non-standard ports.
Fixed buttons having blue outlines on focus on Shadow.
Refactored the topic creation logic to make it easier to maintain.
Made a few responsive fixes, but there's still more to do in the following commits!
2017-10-05 10:20:28 +00:00
|
|
|
</div>
|
2018-07-15 05:00:48 +00:00
|
|
|
<div class="rowitem topic_right passive datarow">
|
2018-06-06 00:21:22 +00:00
|
|
|
<div class="topic_right_inside">
|
2020-03-22 02:37:32 +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-06 00:21:22 +00:00
|
|
|
<span>
|
2020-04-03 02:09:43 +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-06 00:21:22 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
Added Quick Topic.
Added Attachments.
Added Attachment Media Embeds.
Renamed a load of *Store and *Cache methods to reduce the amount of unneccesary typing.
Added petabytes as a unit and cleaned up a few of the friendly units.
Refactored the username change logic to make it easier to maintain.
Refactored the avatar change logic to make it easier to maintain.
Shadow now uses CSS Variables for most of it's colours. We have plans to transpile this to support older browsers later on!
Snuck some CSS Variables into Tempra Conflux.
Added the GroupCache interface to MemoryGroupStore.
Added the Length method to MemoryGroupStore.
Added support for a site short name.
Added the UploadFiles permission.
Renamed more functions.
Fixed the background for the left gutter on the postbit for Tempra Simple and Shadow.
Added support for if statements operating on int8, int16, int32, int32, int64, uint, uint8, uint16, uint32, uint64, float32, and float64 for the template compiler.
Added support for if statements operating on slices and maps for the template compiler.
Fixed a security exploit in reply editing.
Fixed a bug in the URL detector in the parser where it couldn't find URLs with non-standard ports.
Fixed buttons having blue outlines on focus on Shadow.
Refactored the topic creation logic to make it easier to maintain.
Made a few responsive fixes, but there's still more to do in the following commits!
2017-10-05 10:20:28 +00:00
|
|
|
</div>
|
2019-11-02 05:43:59 +00:00
|
|
|
</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}}
|
Added Quick Topic.
Added Attachments.
Added Attachment Media Embeds.
Renamed a load of *Store and *Cache methods to reduce the amount of unneccesary typing.
Added petabytes as a unit and cleaned up a few of the friendly units.
Refactored the username change logic to make it easier to maintain.
Refactored the avatar change logic to make it easier to maintain.
Shadow now uses CSS Variables for most of it's colours. We have plans to transpile this to support older browsers later on!
Snuck some CSS Variables into Tempra Conflux.
Added the GroupCache interface to MemoryGroupStore.
Added the Length method to MemoryGroupStore.
Added support for a site short name.
Added the UploadFiles permission.
Renamed more functions.
Fixed the background for the left gutter on the postbit for Tempra Simple and Shadow.
Added support for if statements operating on int8, int16, int32, int32, int64, uint, uint8, uint16, uint32, uint64, float32, and float64 for the template compiler.
Added support for if statements operating on slices and maps for the template compiler.
Fixed a security exploit in reply editing.
Fixed a bug in the URL detector in the parser where it couldn't find URLs with non-standard ports.
Fixed buttons having blue outlines on focus on Shadow.
Refactored the topic creation logic to make it easier to maintain.
Made a few responsive fixes, but there's still more to do in the following commits!
2017-10-05 10:20:28 +00:00
|
|
|
</div>
|
2018-02-15 13:15:27 +00:00
|
|
|
|
2018-03-11 09:33:49 +00:00
|
|
|
{{template "paginator.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2019-10-11 00:36:08 +00:00
|
|
|
{{template "footer.html" . }}
|