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
|
2018-01-14 12:03:20 +00:00
|
|
|
import "net/http"
|
2017-11-11 05:22:33 +00:00
|
|
|
import "./common"
|
2017-11-29 02:34:02 +00:00
|
|
|
import "strconv"
|
2017-11-11 05:22:33 +00:00
|
|
|
|
2018-03-08 03:59:47 +00:00
|
|
|
var topic_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_handle = Template_topic
|
|
|
|
common.Ctemplates = append(common.Ctemplates,"topic")
|
|
|
|
common.TmplPtrMap["topic"] = &common.Template_topic_handle
|
|
|
|
common.TmplPtrMap["o_topic"] = Template_topic
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// nolint
|
2017-11-11 06:33:08 +00:00
|
|
|
func Template_topic(tmpl_topic_vars common.TopicPage, w http.ResponseWriter) error {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_0)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.Title))
|
|
|
|
w.Write(header_1)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.Name))
|
|
|
|
w.Write(header_2)
|
2017-11-23 05:37:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(header_3)
|
|
|
|
if len(tmpl_topic_vars.Header.Stylesheets) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Stylesheets {
|
|
|
|
w.Write(header_4)
|
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_5)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(header_6)
|
|
|
|
if len(tmpl_topic_vars.Header.Scripts) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Scripts {
|
|
|
|
w.Write(header_7)
|
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_8)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(header_9)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
|
|
|
w.Write(header_10)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.URL))
|
|
|
|
w.Write(header_11)
|
2017-12-25 06:12:19 +00:00
|
|
|
if tmpl_topic_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_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_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_vars.Header.Site.ShortName))
|
|
|
|
w.Write(menu_2)
|
|
|
|
if tmpl_topic_vars.CurrentUser.Loggedin {
|
|
|
|
w.Write(menu_3)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Link))
|
|
|
|
w.Write(menu_4)
|
|
|
|
w.Write([]byte(tmpl_topic_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_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_vars.Header.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_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
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(topic_0)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_1)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_2)
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_vars.Page > 1 {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_3)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_4)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_5)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_6)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
|
|
|
w.Write(topic_7)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.LastPage != tmpl_topic_vars.Page {
|
|
|
|
w.Write(topic_8)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_9)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_10)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_11)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_12)
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_13)
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_14)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write(topic_15)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
w.Write(topic_16)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_17)
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
|
|
|
w.Write(topic_18)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
|
|
|
w.Write(topic_19)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_20)
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_21)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Poll.ID > 0 {
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write(topic_22)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ClassName))
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write(topic_23)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Avatar))
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write(topic_24)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write(topic_25)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Topic.ContentLines <= 5 {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_26)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
|
|
|
w.Write(topic_27)
|
2018-02-03 05:47:14 +00:00
|
|
|
if len(tmpl_topic_vars.Poll.QuickOptions) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Poll.QuickOptions {
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_28)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_29)
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_30)
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_31)
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_32)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_33)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.Value))
|
|
|
|
w.Write(topic_34)
|
2018-02-03 05:47:14 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_35)
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_36)
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write(topic_37)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2017-12-30 05:47:46 +00:00
|
|
|
w.Write(topic_38)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_39)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ClassName))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_40)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Avatar))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_41)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_42)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Topic.ContentLines <= 5 {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_43)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_44)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ContentHTML))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_45)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Content))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_46)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.UserLink))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_47)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.CreatedByName))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_48)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_49)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_50)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_51)
|
|
|
|
if tmpl_topic_vars.Topic.Liked {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_52)
|
|
|
|
} else {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_53)
|
|
|
|
}
|
|
|
|
w.Write(topic_54)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Topic.Liked {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_55)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_56)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_57)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_58)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteTopic {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_59)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
|
|
|
w.Write(topic_60)
|
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
|
|
|
w.Write(topic_61)
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CloseTopic {
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_62)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_63)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_64)
|
2018-01-14 12:03:20 +00:00
|
|
|
} else {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_65)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_66)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_67)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_68)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_69)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_70)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_71)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_72)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_73)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_74)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.IPAddress))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_75)
|
2017-12-30 05:47:46 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.IPAddress))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_76)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_77)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_78)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_79)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.Topic.LikeCount > 0 {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_80)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.LikeCount)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_81)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.Topic.Tag != "" {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_82)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Tag))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_83)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_84)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.Level)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_85)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_86)
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.ItemList {
|
|
|
|
if item.ActionType != "" {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_87)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ActionIcon))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_88)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ActionType))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_89)
|
2018-02-10 15:07:21 +00:00
|
|
|
} else {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_90)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ClassName))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_91)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_92)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_93)
|
2018-02-10 15:07:21 +00:00
|
|
|
if item.ContentLines <= 5 {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_94)
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_95)
|
|
|
|
w.Write(topic_96)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ContentHtml))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_97)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.UserLink))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_98)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_99)
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_100)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_101)
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write(topic_102)
|
2018-02-10 15:07:21 +00:00
|
|
|
if item.Liked {
|
|
|
|
w.Write(topic_103)
|
|
|
|
}
|
|
|
|
w.Write(topic_104)
|
2017-12-10 03:43:30 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditReply {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_105)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_106)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_107)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-12-10 03:43:30 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteReply {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_108)
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_109)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_110)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-12-10 03:43:30 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_111)
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_112)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_113)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_114)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_115)
|
2017-11-11 05:22:33 +00:00
|
|
|
if item.LikeCount > 0 {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_116)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_117)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if item.Tag != "" {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_118)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_119)
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_120)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_121)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_122)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_123)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CreateReply {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_124)
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_125)
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_126)
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.UploadFiles {
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_127)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_128)
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write(topic_129)
|
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_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_vars.Header.Themes) != 0 {
|
|
|
|
for _, item := range tmpl_topic_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_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_vars.Header)))
|
|
|
|
w.Write(footer_8)
|
2017-11-11 05:22:33 +00:00
|
|
|
return nil
|
|
|
|
}
|