2016-12-03 13:45:08 +00:00
{{template "header.html" . }}
2017-05-29 14:52:37 +00:00
2017-08-27 09:33:45 +00:00
{{if gt .Page 1}}< div id = "prevFloat" class = "prev_button" > < a class = "prev_link" aria-label = "Go to the previous page" rel = "prev" href = "/forum/{{.Forum.ID}}?page={{subtract .Page 1}}" > < < / a > < / div > {{end}}
2018-02-15 13:15:27 +00:00
{{if ne .LastPage .Page}}< div id = "nextFloat" class = "next_button" > < a class = "next_link" aria-label = "Go to the next page" rel = "next" href = "/forum/{{.Forum.ID}}?page={{add .Page 1}}" > > < / a > < / div > {{end}}
2017-05-29 14:52:37 +00:00
2018-03-08 03:59:47 +00:00
< main id = "forumItemList" itemscope itemtype = "http://schema.org/ItemList" >
< div id = "forum_head_block" class = "rowblock rowhead topic_list_title_block{{if ne .CurrentUser.ID 0}} has_opt{{end}}" >
< 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 >
2017-11-13 09:23:43 +00:00
{{if ne .CurrentUser.ID 0}}
2018-03-08 03:59:47 +00:00
< div class = "optbox" >
{{if .CurrentUser.Perms.CreateTopic}}
< div class = "pre_opt auto_hide" > < / div >
< div class = "opt create_topic_opt" title = "Create Topic" aria-label = "Create a topic" > < 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 = "Moderate" >
< a class = "moderate_link" href = "#" aria-label = "Moderate Posts" > < / a >
< / div >
{{else}}< div class = "opt locked_opt" title = "You don't have the permissions needed to create a topic" aria-label = "You don't have the permissions needed to make a topic in this forum" > < a > < / a > < / div > {{end}}
2017-11-13 09:23:43 +00:00
< / div >
< div style = "clear: both;" > < / div >
{{end}}
2017-10-30 09:57:08 +00:00
< / div >
2017-11-13 09:23:43 +00:00
{{if ne .CurrentUser.ID 0}}
< div class = "mod_floater auto_hide" >
< form method = "post" >
< div class = "mod_floater_head" >
< span > What do you want to do with these 18 topics?< / span >
< / div >
< div class = "mod_floater_body" >
< select class = "mod_floater_options" >
< option val = "delete" > Delete them< / option >
< option val = "lock" > Lock them< / option >
2018-01-11 08:03:17 +00:00
< option val = "move" > Move them< / option >
2017-11-13 09:23:43 +00:00
< / select >
< button > Run< / button >
< / div >
< / form >
2017-10-30 09:57:08 +00:00
< / div >
2017-11-13 09:23:43 +00:00
{{if .CurrentUser.Perms.CreateTopic}}
< div id = "forum_topic_create_form" class = "rowblock topic_create_form quick_create_form" style = "display: none;" aria-label = "Quick Topic Form" >
2018-02-03 05:47:14 +00:00
< form id = "quick_post_form" enctype = "multipart/form-data" action = "/topic/create/submit/" method = "post" > < / form >
2017-12-22 03:32:23 +00:00
< img class = "little_row_avatar" src = "{{.CurrentUser.Avatar}}" height = "64" alt = "Your Avatar" title = "Your Avatar" / >
2018-02-03 05:47:14 +00:00
< input form = "quick_post_form" id = "topic_board_input" name = "topic-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" >
2018-02-03 05:47:14 +00:00
< input form = "quick_post_form" name = "topic-name" placeholder = "What's up?" required >
2017-11-13 09:23:43 +00:00
< / div >
< / div >
< / div >
< div class = "formrow topic_content_row" >
< div class = "formitem" >
2018-02-03 05:47:14 +00:00
< textarea form = "quick_post_form" id = "input_content" name = "topic-content" placeholder = "Insert post here" required > < / textarea >
2017-11-13 09:23:43 +00:00
< / div >
< / div >
2018-01-25 04:57:33 +00:00
< div class = "formrow poll_content_row auto_hide" >
< div class = "formitem" >
Poll stuff
< / div >
< / div >
2017-11-13 09:23:43 +00:00
< div class = "formrow quick_button_row" >
< div class = "formitem" >
2018-02-03 05:47:14 +00:00
< button form = "quick_post_form" name = "topic-button" class = "formbutton" > Create Topic< / button >
< button form = "quick_post_form" class = "formbutton" id = "add_poll_button" > Add Poll< / button >
2017-11-13 09:23:43 +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;" / >
2017-11-13 09:23:43 +00:00
< label for = "upload_files" class = "formbutton add_file_button" > Add File< / label >
< div id = "upload_file_dock" > < / div > {{end}}
< button class = "formbutton close_form" > Cancel< / button >
< / 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 >
2017-11-13 09:23:43 +00:00
{{end}}
{{end}}
< div id = "forum_topic_list" class = "rowblock topic_list" >
{{range .ItemList}}< div class = "topic_row" data-tid = "{{.ID}}" >
< div class = "rowitem topic_left passive datarow {{if .Sticky}}topic_sticky{{else if .IsClosed}}topic_closed{{end}}" >
< 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-11-13 09:23:43 +00:00
< span class = "topic_inner_left" >
2017-12-27 23:38:37 +00:00
< a class = "rowtopic" href = "{{.Link}}" itemprop = "itemListElement" > < span > {{.Title}}< / span > < / a >
2017-11-13 09:23:43 +00:00
< br / > < a class = "rowsmall starter" href = "{{.Creator.Link}}" > {{.Creator.Name}}< / a >
{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
{{if .IsClosed}}< span class = "rowsmall topic_status_e topic_status_closed" title = "Status: Closed" > | 🔒 & #xFE0E< / span > {{end}}
{{if .Sticky}}< span class = "rowsmall topic_status_e topic_status_sticky" title = "Status: Pinned" > | 📍 & #xFE0E< / span > {{end}}
< / span >
< span class = "topic_inner_right rowsmall" style = "float: right;" >
< span class = "replyCount" > {{.PostCount}}< / span > < br / >
< span class = "likeCount" > {{.LikeCount}}< / span >
< / span >
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 >
2017-11-13 09:23:43 +00:00
< div class = "rowitem topic_right passive datarow {{if .Sticky}}topic_sticky{{else if .IsClosed}}topic_closed{{end}}" >
2017-12-22 03:32:23 +00:00
< a href = "{{.LastUser.Link}}" > < img src = "{{.LastUser.Avatar}}" height = "64" alt = "{{.LastUser.Name}}'s Avatar" title = "{{.LastUser.Name}}'s Avatar" / > < / a >
2017-11-13 09:23:43 +00:00
< span >
< a href = "{{.LastUser.Link}}" class = "lastName" style = "font-size: 14px;" > {{.LastUser.Name}}< / a > < br >
< span class = "rowsmall lastReplyAt" > {{.RelativeLastReplyAt}}< / span >
< / span >
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-19 04:26:01 +00:00
< / div > {{else}}< div class = "rowitem passive rowmsg" > There aren't any topics in this forum yet.{{if .CurrentUser.Perms.CreateTopic}} < a href = "/topics/create/{{.Forum.ID}}" > Start one?< / a > {{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
{{if gt .LastPage 1}}
< div class = "pageset" >
{{if gt .Page 1}}< div class = "pageitem" > < a href = "?page={{subtract .Page 1}}" rel = "prev" aria-label = "Go to the previous page" > Prev< / a > < / div >
< link rel = "prev" href = "?page={{subtract .Page 1}}" / > {{end}}
{{range .PageList}}
< div class = "pageitem" > < a href = "?page={{.}}" > {{.}}< / a > < / div >
{{end}}
{{if ne .LastPage .Page}}
< link rel = "next" href = "?page={{add .Page 1}}" / >
< div class = "pageitem" > < a href = "?page={{add .Page 1}}" rel = "next" aria-label = "Go to the next page" > Next< / a > < / div > {{end}}
< / div >
{{end}}
2017-08-20 09:39:02 +00:00
< / main >
2017-06-05 11:57:27 +00:00
{{template "footer.html" . }}