2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
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-03-08 03:59:47 +00:00
|
|
|
<div class="rowblock rowhead topic_list_title_block{{if ne .CurrentUser.ID 0}} has_opt{{end}}">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem topic_list_title"><h1 itemprop="name">{{lang "topics_head"}}</h1></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
|
|
|
{{if ne .CurrentUser.ID 0}}
|
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-03-08 03:59:47 +00:00
|
|
|
<div class="pre_opt auto_hide"></div>
|
2018-03-11 09:33:49 +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-03-11 09:33:49 +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-03-11 09:33:49 +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>
|
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 style="clear: both;"></div>
|
|
|
|
{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
2017-10-30 09:57:08 +00:00
|
|
|
|
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 ne .CurrentUser.ID 0}}
|
2018-01-11 08:03:17 +00:00
|
|
|
{{/** TODO: Hide these from unauthorised users? **/}}
|
2017-10-30 09:57:08 +00:00
|
|
|
<div class="mod_floater auto_hide">
|
|
|
|
<form method="post">
|
|
|
|
<div class="mod_floater_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<span>{{lang "topic_list_what_to_do"}}</span>
|
2017-10-30 09:57:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="mod_floater_body">
|
|
|
|
<select class="mod_floater_options">
|
2018-03-11 09:33:49 +00:00
|
|
|
<option val="delete">{{lang "topic_list_moderate_delete"}}</option>
|
|
|
|
<option val="lock">{{lang "topic_list_moderate_lock"}}</option>
|
|
|
|
<option val="move">{{lang "topic_list_moderate_move"}}</option>
|
2017-10-30 09:57:08 +00:00
|
|
|
</select>
|
2018-03-11 09:33:49 +00:00
|
|
|
<button class="mod_floater_submit">{{lang "topic_list_moderate_run"}}</button>
|
2017-10-30 09:57:08 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{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">
|
2018-01-14 12:03:20 +00:00
|
|
|
<form action="/topic/move/submit/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<input id="mover_fid" name="fid" value="0" type="hidden" />
|
2018-01-11 08:03:17 +00:00
|
|
|
<div class="pane_header">
|
2018-03-11 09:33:49 +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-03-11 09:33:49 +00:00
|
|
|
<button id="mover_submit">{{lang "topic_list_move_button"}}</button>
|
2018-01-11 08:03:17 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowblock topic_create_form quick_create_form" style="display: none;" aria-label="{{lang "quick_topic_aria"}}">
|
2018-02-03 05:47:14 +00:00
|
|
|
<form name="topic_create_form_form" id="quick_post_form" enctype="multipart/form-data" action="/topic/create/submit/?session={{.CurrentUser.Session}}" method="post"></form>
|
|
|
|
<input form="quick_post_form" id="has_poll_input" name="has_poll" value="0" type="hidden" />
|
2018-03-11 09:33:49 +00:00
|
|
|
<img class="little_row_avatar" src="{{.CurrentUser.Avatar}}" 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">
|
2017-11-02 02:52:21 +00:00
|
|
|
{{range .ForumList}}<option {{if eq .ID $.DefaultForum}}selected{{end}} value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow topic_name_row">
|
|
|
|
<div class="formitem">
|
2018-03-11 09:33:49 +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>
|
2017-11-02 02:52:21 +00:00
|
|
|
<div class="formrow topic_content_row">
|
2017-10-30 09:57:08 +00:00
|
|
|
<div class="formitem">
|
2018-03-11 09:33:49 +00:00
|
|
|
<textarea form="quick_post_form" id="input_content" name="topic-content" placeholder="{{lang "quick_topic_content_placeholder"}}" required></textarea>
|
2017-10-30 09:57:08 +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-01-25 04:57:33 +00:00
|
|
|
<div class="formrow poll_content_row auto_hide">
|
|
|
|
<div class="formitem">
|
2018-01-26 05:53:34 +00:00
|
|
|
<div class="pollinput" data-pollinput="0">
|
2018-01-25 04:57:33 +00:00
|
|
|
<input type="checkbox" disabled />
|
|
|
|
<label class="pollinputlabel"></label>
|
2018-03-11 09:33:49 +00:00
|
|
|
<input form="quick_post_form" name="pollinputitem[0]" class="pollinputinput" type="text" placeholder="{{lang "quick_topic_add_poll_option"}}" />
|
2018-01-25 04:57:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-02 02:52:21 +00:00
|
|
|
<div class="formrow quick_button_row">
|
|
|
|
<div class="formitem">
|
2018-03-11 09:33:49 +00:00
|
|
|
<button form="quick_post_form" class="formbutton">{{lang "quick_topic_create_topic_button"}}</button>
|
|
|
|
<button form="quick_post_form" class="formbutton" id="add_poll_button">{{lang "quick_topic_add_poll_button"}}</button>
|
2017-11-02 02:52:21 +00:00
|
|
|
{{if .CurrentUser.Perms.UploadFiles}}
|
2018-02-03 05:47:14 +00:00
|
|
|
<input name="upload_files" form="quick_post_form" id="upload_files" multiple type="file" style="display: none;" />
|
2018-03-11 09:33:49 +00:00
|
|
|
<label for="upload_files" class="formbutton add_file_button">{{lang "quick_topic_add_file_button"}}</label>
|
2017-11-02 02:52:21 +00:00
|
|
|
<div id="upload_file_dock"></div>{{end}}
|
2018-03-11 09:33:49 +00:00
|
|
|
<button class="formbutton close_form">{{lang "quick_topic_cancel_button"}}</button>
|
2017-11-02 02:52:21 +00:00
|
|
|
</div>
|
2017-10-30 09:57:08 +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>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2018-03-11 09:33:49 +00:00
|
|
|
<div id="topic_list" class="rowblock topic_list" aria-label="{{lang "topics_list_aria"}}">
|
2017-10-30 09:57:08 +00:00
|
|
|
{{range .TopicList}}<div class="topic_row" data-tid="{{.ID}}">
|
2017-10-12 03:24:14 +00:00
|
|
|
<div class="rowitem topic_left passive datarow {{if .Sticky}}topic_sticky{{else if .IsClosed}}topic_closed{{end}}">
|
2017-10-21 00:27:47 +00:00
|
|
|
<span class="selector"></span>
|
2017-12-22 03:32:23 +00:00
|
|
|
<a href="{{.Creator.Link}}"><img src="{{.Creator.Avatar}}" height="64" alt="{{.Creator.Name}}'s Avatar" title="{{.Creator.Name}}'s Avatar" /></a>
|
2017-10-12 03:24:14 +00:00
|
|
|
<span class="topic_inner_left">
|
2018-03-31 05:25:27 +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}}
|
|
|
|
<br /><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
2017-09-10 16:57:22 +00:00
|
|
|
{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
|
2018-03-11 09:33:49 +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-08-06 15:22:18 +00:00
|
|
|
</span>
|
2018-05-27 09:18:29 +00:00
|
|
|
{{/** TODO: Phase this out of Cosora and remove it **/}}
|
|
|
|
<div class="topic_inner_right rowsmall">
|
2017-10-21 00:27:47 +00:00
|
|
|
<span class="replyCount">{{.PostCount}}</span><br />
|
|
|
|
<span class="likeCount">{{.LikeCount}}</span>
|
2018-05-27 09:18:29 +00:00
|
|
|
</div>
|
2017-08-06 15:22:18 +00:00
|
|
|
</div>
|
2018-05-27 09:18:29 +00:00
|
|
|
<div class="topic_middle">
|
|
|
|
<div class="topic_middle_inside rowsmall">
|
|
|
|
<span class="replyCount">{{.PostCount}}</span><br />
|
|
|
|
<span class="likeCount">{{.LikeCount}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="rowitem topic_right passive datarow {{if .Sticky}}topic_sticky{{else if .IsClosed}} topic_closed{{end}}">
|
|
|
|
<div class="topic_right_inside">
|
|
|
|
<a href="{{.LastUser.Link}}"><img src="{{.LastUser.Avatar}}" height="64" alt="{{.LastUser.Name}}'s Avatar" title="{{.LastUser.Name}}'s Avatar" /></a>
|
|
|
|
<span>
|
|
|
|
<a href="{{.LastUser.Link}}" class="lastName" style="font-size: 14px;" title="{{.LastUser.Name}}">{{.LastUser.Name}}</a><br>
|
|
|
|
<span class="rowsmall lastReplyAt">{{.RelativeLastReplyAt}}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2016-12-21 02:30:32 +00:00
|
|
|
</div>
|
2018-03-11 09:33:49 +00:00
|
|
|
</div>{{else}}<div class="rowitem passive rowmsg">{{lang "topics_no_topics"}}{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/">{{lang "topics_start_one"}}</a>{{end}}</div>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
|
2018-01-20 06:50:29 +00:00
|
|
|
{{if gt .LastPage 1}}
|
2018-03-11 09:33:49 +00:00
|
|
|
{{template "paginator.html" . }}
|
2018-01-20 06:50:29 +00:00
|
|
|
{{end}}
|
|
|
|
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-06-05 11:57:27 +00:00
|
|
|
{{template "footer.html" . }}
|