2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
2018-12-17 10:14:20 +00:00
|
|
|
<link rel="canonical" href="//{{.Site.URL}}/topics/{{if eq .Sort.SortBy "mostviewed"}}most-viewed/{{end}}{{if gt .Page 1}}?page={{.Page}}{{end}}" />
|
2018-03-08 03:59:47 +00:00
|
|
|
<main id="topicsItemList" itemscope itemtype="http://schema.org/ItemList">
|
2017-08-20 09:39:02 +00:00
|
|
|
|
2018-12-08 06:49:14 +00:00
|
|
|
<div class="rowblock rowhead topic_list_title_block{{if .CurrentUser.Loggedin}} has_opt{{end}}">
|
2019-02-10 05:52:26 +00:00
|
|
|
<div class="rowitem topic_list_title"><h1 itemprop="name">{{.Title}}</h1></div>
|
2018-11-28 21:46:53 +00:00
|
|
|
{{if .CurrentUser.Loggedin}}
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="optbox">
|
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
|
|
|
{{if .ForumList}}
|
2018-09-25 09:08:48 +00:00
|
|
|
<div class="opt filter_opt">
|
2018-12-28 11:13:06 +00:00
|
|
|
<a class="filter_opt_sep"> - </a>
|
2018-12-08 06:49:14 +00:00
|
|
|
<a href="#" class="filter_opt_label link_label" data-for="topic_list_filter_select">{{if eq .Sort.SortBy "mostviewed" }}{{lang "topic_list.most_viewed_filter"}}{{else}}{{lang "topic_list.most_recent_filter"}}{{end}} <span class="filter_opt_pointy">▾</span></a>
|
2018-09-26 07:46:30 +00:00
|
|
|
<div id="topic_list_filter_select" class="link_select">
|
2018-09-25 08:02:40 +00:00
|
|
|
<div class="link_option link_selected">
|
2018-09-26 08:10:46 +00:00
|
|
|
<a href="/topics/">{{lang "topic_list.most_recent_filter"}}</a>
|
2018-09-25 08:02:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="link_option">
|
2018-09-26 08:10:46 +00:00
|
|
|
<a href="/topics/most-viewed/">{{lang "topic_list.most_viewed_filter"}}</a>
|
2018-09-25 08:02:40 +00:00
|
|
|
</div>
|
2018-09-24 07:49:19 +00:00
|
|
|
</div>
|
2018-09-25 08:02:40 +00:00
|
|
|
</div>
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="pre_opt auto_hide"></div>
|
2018-06-30 03:40:50 +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/"></a></div>
|
2018-03-08 03:59:47 +00:00
|
|
|
{{/** TODO: Add a permissions check for this **/}}
|
2018-06-30 03:40:50 +00:00
|
|
|
<div class="opt mod_opt" title="{{lang "topic_list.moderate_tooltip"}}">
|
|
|
|
<a class="moderate_link" href="#" aria-label="{{lang "topic_list.moderate_aria"}}"></a>
|
2018-03-08 03:59:47 +00:00
|
|
|
</div>
|
2018-09-20 08:56:50 +00:00
|
|
|
{{else}}<div class="opt locked_opt" title="{{lang "topics_locked_tooltip"}}" aria-label="{{lang "topics_locked_aria"}}"><a></a></div>{{end}}
|
2017-10-21 00:27:47 +00:00
|
|
|
</div>
|
2019-06-16 07:26:31 +00:00
|
|
|
<div style="clear:both;"></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
|
|
|
{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
2017-10-30 09:57:08 +00:00
|
|
|
|
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-10-30 09:57:08 +00:00
|
|
|
|
|
|
|
{{if .ForumList}}
|
2018-01-11 08:03:17 +00:00
|
|
|
{{/** TODO: Have a seperate forum list for moving topics? Maybe an AJAX forum search compatible with plugin_guilds? **/}}
|
|
|
|
{{/** TODO: Add ARIA attributes for this **/}}
|
|
|
|
<div id="mod_topic_mover" class="modal_pane auto_hide">
|
2019-07-26 22:36:06 +00:00
|
|
|
<form action="/topic/move/submit/?s={{.CurrentUser.Session}}" method="post">
|
2019-06-11 18:04:56 +00:00
|
|
|
<input id="mover_fid" name="fid" value=0 type="hidden" />
|
2018-01-11 08:03:17 +00:00
|
|
|
<div class="pane_header">
|
2018-06-30 03:40:50 +00:00
|
|
|
<h3>{{lang "topic_list.move_head"}}</h3>
|
2018-01-11 08:03:17 +00:00
|
|
|
</div>
|
|
|
|
<div class="pane_body">
|
|
|
|
<div class="pane_table">
|
2018-01-12 10:22:28 +00:00
|
|
|
{{range .ForumList}}<div id="mover_fid_{{.ID}}" data-fid="{{.ID}}" class="pane_row">{{.Name}}</div>{{end}}
|
2018-01-11 08:03:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pane_buttons">
|
2018-06-30 03:40:50 +00:00
|
|
|
<button id="mover_submit">{{lang "topic_list.move_button"}}</button>
|
2018-01-11 08:03:17 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-09-01 01:37:04 +00:00
|
|
|
<div class="rowblock topic_create_form quick_create_form auto_hide" aria-label="{{lang "quick_topic.aria"}}">
|
2019-07-26 22:36:06 +00:00
|
|
|
<form name="topic_create_form_form" id="quick_post_form" enctype="multipart/form-data" action="/topic/create/submit/?s={{.CurrentUser.Session}}" method="post"></form>
|
2019-06-11 18:04:56 +00:00
|
|
|
<img class="little_row_avatar" src="{{.CurrentUser.MicroAvatar}}" height=64 alt="{{lang "quick_topic.avatar_alt"}}" title="{{lang "quick_topic.avatar_tooltip"}}" />
|
2017-10-30 09:57:08 +00:00
|
|
|
<div class="main_form">
|
2017-11-02 02:52:21 +00:00
|
|
|
<div class="topic_meta">
|
|
|
|
<div class="formrow topic_board_row real_first_child">
|
2018-02-03 05:47:14 +00:00
|
|
|
<div class="formitem"><select form="quick_post_form" id="topic_board_input" name="topic-board">
|
2019-09-01 01:37:04 +00:00
|
|
|
{{range .ForumList}}<option{{if eq .ID $.DefaultForum}} selected{{end}} value="{{.ID}}">{{.Name}}</option>{{end}}
|
2017-11-02 02:52:21 +00:00
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow topic_name_row">
|
|
|
|
<div class="formitem">
|
2018-06-24 13:49:29 +00:00
|
|
|
<input form="quick_post_form" name="topic-name" placeholder="{{lang "quick_topic.whatsup"}}" required>
|
2017-11-02 02:52:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-30 09:57:08 +00:00
|
|
|
</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>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2018-06-30 03:40:50 +00:00
|
|
|
<div class="rowblock more_topic_block more_topic_block_initial">
|
|
|
|
<div class="rowitem rowmsg"><a href="" class="more_topics"></a></div>
|
|
|
|
</div>
|
2018-09-26 07:46:30 +00:00
|
|
|
<div id="topic_list" class="rowblock topic_list topic_list_{{.Sort.SortBy}}" aria-label="{{lang "topics_list_aria"}}">
|
2018-11-28 21:46:53 +00:00
|
|
|
{{range .TopicList}}{{template "topics_topic.html" . }}{{else}}<div class="rowitem passive rowmsg">{{lang "topics_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/">{{lang "topics_start_one"}}</a>{{end}}{{end}}</div>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
|
2018-03-11 09:33:49 +00:00
|
|
|
{{template "paginator.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-06-05 11:57:27 +00:00
|
|
|
{{template "footer.html" . }}
|