2017-11-11 05:22:33 +00:00
|
|
|
// +build !no_templategen
|
|
|
|
|
|
|
|
// Code generated by Gosora. More below:
|
|
|
|
/* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */
|
|
|
|
package main
|
2017-12-19 03:53:13 +00:00
|
|
|
import "net/http"
|
2017-11-11 05:22:33 +00:00
|
|
|
import "./common"
|
2018-01-14 12:03:20 +00:00
|
|
|
import "strconv"
|
2017-11-11 05:22:33 +00:00
|
|
|
|
2018-03-08 03:59:47 +00:00
|
|
|
var topic_alt_Tmpl_Phrase_ID int
|
|
|
|
|
2017-11-11 05:22:33 +00:00
|
|
|
// nolint
|
|
|
|
func init() {
|
2017-11-11 06:33:08 +00:00
|
|
|
common.Template_topic_alt_handle = Template_topic_alt
|
|
|
|
common.Ctemplates = append(common.Ctemplates,"topic_alt")
|
|
|
|
common.TmplPtrMap["topic_alt"] = &common.Template_topic_alt_handle
|
|
|
|
common.TmplPtrMap["o_topic_alt"] = Template_topic_alt
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// nolint
|
2017-11-11 06:33:08 +00:00
|
|
|
func Template_topic_alt(tmpl_topic_alt_vars common.TopicPage, w http.ResponseWriter) error {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_0)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Title))
|
|
|
|
w.Write(header_1)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.Site.Name))
|
|
|
|
w.Write(header_2)
|
2017-11-23 05:37:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.Theme.Name))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_3)
|
|
|
|
if len(tmpl_topic_alt_vars.Header.Stylesheets) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Header.Stylesheets {
|
|
|
|
w.Write(header_4)
|
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_5)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(header_6)
|
|
|
|
if len(tmpl_topic_alt_vars.Header.Scripts) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Header.Scripts {
|
|
|
|
w.Write(header_7)
|
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_8)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(header_9)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
|
|
|
w.Write(header_10)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.Site.URL))
|
|
|
|
w.Write(header_11)
|
2017-12-25 06:12:19 +00:00
|
|
|
if tmpl_topic_alt_vars.Header.MetaDesc != "" {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_12)
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.MetaDesc))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_13)
|
2017-12-25 06:12:19 +00:00
|
|
|
}
|
|
|
|
w.Write(header_14)
|
|
|
|
if !tmpl_topic_alt_vars.CurrentUser.IsSuperMod {
|
|
|
|
w.Write(header_15)
|
|
|
|
}
|
|
|
|
w.Write(header_16)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(menu_0)
|
|
|
|
w.Write(menu_1)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.Site.ShortName))
|
|
|
|
w.Write(menu_2)
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
|
|
|
w.Write(menu_3)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Link))
|
|
|
|
w.Write(menu_4)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
|
|
|
w.Write(menu_5)
|
|
|
|
} else {
|
|
|
|
w.Write(menu_6)
|
|
|
|
}
|
|
|
|
w.Write(menu_7)
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write(header_17)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_alt_vars.Header.Widgets.RightSidebar != "" {
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write(header_18)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write(header_19)
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_alt_vars.Header.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Header.NoticeList {
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write(header_20)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item))
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write(header_21)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.Page > 1 {
|
|
|
|
w.Write(topic_alt_0)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_1)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page - 1)))
|
|
|
|
w.Write(topic_alt_2)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_3)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page - 1)))
|
|
|
|
w.Write(topic_alt_4)
|
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.LastPage != tmpl_topic_alt_vars.Page {
|
|
|
|
w.Write(topic_alt_5)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_6)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
|
|
|
w.Write(topic_alt_7)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_8)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
|
|
|
w.Write(topic_alt_9)
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_10)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_11)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_12)
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_alt_13)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_alt_14)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_15)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_16)
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
|
|
|
w.Write(topic_alt_17)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
|
|
|
w.Write(topic_alt_18)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_19)
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_20)
|
2018-01-26 05:53:34 +00:00
|
|
|
if tmpl_topic_alt_vars.Poll.ID > 0 {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_21)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_22)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_23)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_24)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Avatar))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_25)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.UserLink))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_26)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.CreatedByName))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_27)
|
2018-01-27 07:30:44 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Tag != "" {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_28)
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Tag))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_alt_29)
|
2018-01-27 07:30:44 +00:00
|
|
|
} else {
|
|
|
|
w.Write(topic_alt_30)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.Level)))
|
|
|
|
w.Write(topic_alt_31)
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_32)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
|
|
|
w.Write(topic_alt_33)
|
2018-01-26 05:53:34 +00:00
|
|
|
if len(tmpl_topic_alt_vars.Poll.QuickOptions) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Poll.QuickOptions {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_34)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
|
|
|
w.Write(topic_alt_35)
|
2018-01-26 05:53:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_36)
|
2018-01-26 05:53:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_37)
|
2018-01-26 05:53:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_38)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_39)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.Value))
|
|
|
|
w.Write(topic_alt_40)
|
2018-01-26 05:53:34 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_41)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
|
|
|
w.Write(topic_alt_42)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_43)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_44)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_45)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Avatar))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_46)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.UserLink))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_47)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.CreatedByName))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_48)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Tag != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_49)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Tag))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_50)
|
2018-01-28 14:30:24 +00:00
|
|
|
} else {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_51)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.Level)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_52)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_53)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.ContentHTML))
|
|
|
|
w.Write(topic_alt_54)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Content))
|
|
|
|
w.Write(topic_alt_55)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_56)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_57)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_58)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_59)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_60)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteTopic {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_61)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_62)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_63)
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CloseTopic {
|
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_64)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_65)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_66)
|
2018-01-14 12:03:20 +00:00
|
|
|
} else {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_67)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_68)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_69)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_70)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_71)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_72)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_73)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_74)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_75)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2017-12-19 03:53:13 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_76)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_77)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_78)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_79)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_80)
|
2017-12-19 03:53:13 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_81)
|
2017-12-19 03:53:13 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.LikeCount > 0 {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_82)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_83)
|
|
|
|
if tmpl_topic_alt_vars.Topic.LikeCount > 0 {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_84)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.LikeCount)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_85)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_86)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.RelativeCreatedAt))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_87)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_88)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_89)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_90)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_91)
|
|
|
|
if len(tmpl_topic_alt_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.ItemList {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_92)
|
2018-01-28 14:30:24 +00:00
|
|
|
if item.ActionType != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_93)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_94)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_95)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.UserLink))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_96)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_97)
|
2018-01-28 14:30:24 +00:00
|
|
|
if item.Tag != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_98)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_99)
|
2018-01-28 14:30:24 +00:00
|
|
|
} else {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_100)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_101)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_102)
|
2017-11-11 05:22:33 +00:00
|
|
|
if item.ActionType != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_103)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_104)
|
2018-01-28 14:30:24 +00:00
|
|
|
if item.ActionType != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_105)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.ActionIcon))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_106)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.ActionType))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_107)
|
2018-01-28 14:30:24 +00:00
|
|
|
} else {
|
|
|
|
w.Write(topic_alt_108)
|
|
|
|
w.Write([]byte(item.ContentHtml))
|
|
|
|
w.Write(topic_alt_109)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_110)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_111)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_112)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditReply {
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_113)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_114)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_115)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteReply {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_116)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_117)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_118)
|
2017-12-19 03:53:13 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_119)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_120)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_121)
|
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_122)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_123)
|
2017-12-19 03:53:13 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_124)
|
2017-12-19 03:53:13 +00:00
|
|
|
if item.LikeCount > 0 {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_125)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write(topic_alt_126)
|
|
|
|
if item.LikeCount > 0 {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_127)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_128)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_129)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.RelativeCreatedAt))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_130)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_131)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_132)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_133)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_134)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_135)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_136)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CreateReply {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_137)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Avatar))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_138)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Link))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_139)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Name))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_140)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Tag != "" {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_141)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Tag))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_142)
|
2018-01-28 14:30:24 +00:00
|
|
|
} else {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_143)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.CurrentUser.Level)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_144)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_145)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_146)
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_147)
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.UploadFiles {
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write(topic_alt_148)
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
|
|
|
w.Write(topic_alt_149)
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_150)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(footer_0)
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("footer",tmpl_topic_alt_vars.Header)))
|
2017-11-23 05:37:08 +00:00
|
|
|
w.Write(footer_1)
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_alt_vars.Header.Themes) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Header.Themes {
|
|
|
|
if !item.HideFromThemes {
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_2)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.Name))
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_3)
|
2017-11-23 05:37:08 +00:00
|
|
|
if tmpl_topic_alt_vars.Header.Theme.Name == item.Name {
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_4)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_5)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.FriendlyName))
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_6)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write(footer_7)
|
|
|
|
w.Write([]byte(common.BuildWidget("rightSidebar",tmpl_topic_alt_vars.Header)))
|
|
|
|
w.Write(footer_8)
|
2017-11-11 05:22:33 +00:00
|
|
|
return nil
|
|
|
|
}
|