2017-08-13 11:22:34 +00:00
|
|
|
// +build !no_templategen
|
|
|
|
|
2017-06-16 10:41:30 +00:00
|
|
|
// Code generated by Gosora. More below:
|
2017-01-01 15:45:43 +00:00
|
|
|
/* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */
|
2016-12-16 10:37:42 +00:00
|
|
|
package main
|
2017-08-13 11:22:34 +00:00
|
|
|
import "net/http"
|
2017-08-20 09:39:02 +00:00
|
|
|
import "strconv"
|
2016-12-16 10:37:42 +00:00
|
|
|
|
2017-09-03 04:50:31 +00:00
|
|
|
// nolint
|
2016-12-16 10:37:42 +00:00
|
|
|
func init() {
|
2017-01-01 15:45:43 +00:00
|
|
|
template_topic_handle = template_topic
|
|
|
|
//o_template_topic_handle = template_topic
|
|
|
|
ctemplates = append(ctemplates,"topic")
|
2017-09-03 04:50:31 +00:00
|
|
|
tmplPtrMap["topic"] = &template_topic_handle
|
|
|
|
tmplPtrMap["o_topic"] = template_topic
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
|
|
|
|
2017-09-03 04:50:31 +00:00
|
|
|
// nolint
|
2017-10-30 09:57:08 +00:00
|
|
|
func template_topic(tmpl_topic_vars TopicPage, w http.ResponseWriter) error {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(header_0)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.Title))
|
|
|
|
w.Write(header_1)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.Name))
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write(header_2)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.ThemeName))
|
|
|
|
w.Write(header_3)
|
2017-06-16 10:41:30 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Stylesheets) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Stylesheets {
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write(header_4)
|
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
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_5)
|
2017-06-16 10:41:30 +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
|
|
|
w.Write(header_6)
|
2017-06-16 10:41:30 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Scripts) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Scripts {
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write(header_7)
|
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
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_8)
|
2017-06-16 10:41:30 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(header_9)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(header_10)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.URL))
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write(header_11)
|
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 !tmpl_topic_vars.CurrentUser.IsSuperMod {
|
|
|
|
w.Write(header_12)
|
|
|
|
}
|
|
|
|
w.Write(header_13)
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_0)
|
|
|
|
w.Write(menu_1)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.ShortName))
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_2)
|
2017-09-03 04:50:31 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Loggedin {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_3)
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Link))
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_4)
|
2017-10-12 03:24:14 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(menu_5)
|
2017-10-12 03:24:14 +00:00
|
|
|
} else {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(menu_6)
|
2017-10-12 03:24:14 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(menu_7)
|
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
|
|
|
w.Write(header_14)
|
2017-09-03 04:50:31 +00:00
|
|
|
if tmpl_topic_vars.Header.Widgets.RightSidebar != "" {
|
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
|
|
|
w.Write(header_15)
|
2017-09-03 04:50:31 +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
|
|
|
w.Write(header_16)
|
2017-06-16 10:41:30 +00:00
|
|
|
if len(tmpl_topic_vars.Header.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.NoticeList {
|
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
|
|
|
w.Write(header_17)
|
2017-09-03 04:50:31 +00:00
|
|
|
w.Write([]byte(item))
|
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
|
|
|
w.Write(header_18)
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(topic_0)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_1)
|
2017-07-29 10:36:39 +00:00
|
|
|
if tmpl_topic_vars.Page > 1 {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(topic_2)
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_3)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_4)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_5)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_6)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.LastPage != tmpl_topic_vars.Page {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_7)
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_8)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_9)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_10)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_11)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
|
|
|
w.Write(topic_12)
|
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_13)
|
2016-12-26 04:44:07 +00:00
|
|
|
} else {
|
2017-09-03 04:50:31 +00:00
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_14)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_15)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_16)
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_17)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_18)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_19)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_20)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ClassName))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_21)
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.Topic.Avatar != "" {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_22)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Avatar))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_23)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.ThemeName))
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_24)
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.Topic.ContentLines <= 5 {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_25)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_26)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_27)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ContentHTML))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_28)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Content))
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write(topic_29)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.UserLink))
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_30)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.CreatedByName))
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_31)
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_32)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_33)
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.Topic.Liked {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_34)
|
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
|
|
|
w.Write(topic_35)
|
2017-07-29 10:36:39 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_36)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_37)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteTopic {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_38)
|
2017-07-17 10:23:42 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
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
|
|
|
w.Write(topic_39)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CloseTopic {
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_40)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_41)
|
2017-10-30 09:57:08 +00:00
|
|
|
} else {
|
|
|
|
w.Write(topic_42)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_43)
|
2017-09-22 02:21:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_44)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_45)
|
2017-10-30 09:57:08 +00:00
|
|
|
} else {
|
|
|
|
w.Write(topic_46)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_47)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-09-03 04:50:31 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_48)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.IPAddress))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_49)
|
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
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_50)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_51)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_52)
|
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 tmpl_topic_vars.Topic.LikeCount > 0 {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_53)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.LikeCount)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_54)
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_vars.Topic.Tag != "" {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_55)
|
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
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Tag))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_56)
|
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
|
|
|
} else {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_57)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.Level)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_58)
|
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
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_59)
|
2016-12-16 10:37:42 +00:00
|
|
|
if len(tmpl_topic_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.ItemList {
|
2017-04-02 13:00:40 +00:00
|
|
|
if item.ActionType != "" {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_60)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.ActionIcon))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_61)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.ActionType))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_62)
|
2017-10-30 09:57:08 +00:00
|
|
|
} else {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_63)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.ClassName))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_64)
|
2017-10-30 09:57:08 +00:00
|
|
|
if item.Avatar != "" {
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_65)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_66)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.ThemeName))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_67)
|
2017-10-30 09:57:08 +00:00
|
|
|
if item.ContentLines <= 5 {
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_68)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_69)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_70)
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_71)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.ContentHtml))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_72)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.UserLink))
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_73)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2017-04-02 13:00:40 +00:00
|
|
|
w.Write(topic_74)
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2017-07-29 10:36:39 +00:00
|
|
|
w.Write(topic_75)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write(topic_76)
|
2017-10-30 09:57:08 +00:00
|
|
|
if item.Liked {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_77)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write(topic_78)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditReply {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_79)
|
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
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_80)
|
2017-09-28 22:16:34 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteReply {
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_81)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-07-29 14:04:20 +00:00
|
|
|
w.Write(topic_82)
|
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
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_83)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2017-09-22 02:21:17 +00:00
|
|
|
w.Write(topic_84)
|
2017-10-30 09:57:08 +00:00
|
|
|
}
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write(topic_85)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
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
|
|
|
w.Write(topic_86)
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
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
|
|
|
w.Write(topic_87)
|
2017-10-30 09:57:08 +00:00
|
|
|
if item.LikeCount > 0 {
|
|
|
|
w.Write(topic_88)
|
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
|
|
|
w.Write(topic_89)
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
2017-09-03 04:50:31 +00:00
|
|
|
if item.Tag != "" {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_90)
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_91)
|
2017-09-28 22:16:34 +00:00
|
|
|
} else {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_92)
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_93)
|
2017-07-29 10:36:39 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_94)
|
2017-09-28 22:16:34 +00:00
|
|
|
}
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
2017-04-02 13:00:40 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_95)
|
2017-09-28 22:16:34 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CreateReply {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_96)
|
2017-09-28 22:16:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_97)
|
2017-10-12 03:24:14 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.UploadFiles {
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_98)
|
2017-10-12 03:24:14 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_99)
|
2017-10-12 03:24:14 +00:00
|
|
|
}
|
2017-10-30 09:57:08 +00:00
|
|
|
w.Write(topic_100)
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(footer_0)
|
2017-09-10 16:57:22 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Themes) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Themes {
|
|
|
|
if !item.HideFromThemes {
|
2017-06-19 08:06:54 +00:00
|
|
|
w.Write(footer_1)
|
2017-09-10 16:57:22 +00:00
|
|
|
w.Write([]byte(item.Name))
|
2017-06-19 08:06:54 +00:00
|
|
|
w.Write(footer_2)
|
2017-09-10 16:57:22 +00:00
|
|
|
if tmpl_topic_vars.Header.ThemeName == item.Name {
|
2017-06-19 08:06:54 +00:00
|
|
|
w.Write(footer_3)
|
2016-12-16 10:37:42 +00:00
|
|
|
}
|
2017-09-10 16:57:22 +00:00
|
|
|
w.Write(footer_4)
|
|
|
|
w.Write([]byte(item.FriendlyName))
|
|
|
|
w.Write(footer_5)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(footer_6)
|
|
|
|
if tmpl_topic_vars.Header.Widgets.RightSidebar != "" {
|
|
|
|
w.Write(footer_7)
|
|
|
|
w.Write([]byte(string(tmpl_topic_vars.Header.Widgets.RightSidebar)))
|
|
|
|
w.Write(footer_8)
|
|
|
|
}
|
|
|
|
w.Write(footer_9)
|
2017-10-30 09:57:08 +00:00
|
|
|
return nil
|
2017-09-10 16:57:22 +00:00
|
|
|
}
|