2017-03-27 07:09:28 +00:00
|
|
|
// Code generated by. DO NOT EDIT.
|
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-26 04:44:07 +00:00
|
|
|
package main
|
2017-01-01 15:45:43 +00:00
|
|
|
import "strconv"
|
2017-04-12 10:26:10 +00:00
|
|
|
import "io"
|
2016-12-26 04:44:07 +00:00
|
|
|
|
|
|
|
func init() {
|
2017-01-01 15:45:43 +00:00
|
|
|
template_topic_alt_handle = template_topic_alt
|
|
|
|
//o_template_topic_alt_handle = template_topic_alt
|
|
|
|
ctemplates = append(ctemplates,"topic_alt")
|
|
|
|
tmpl_ptr_map["topic_alt"] = &template_topic_alt_handle
|
|
|
|
tmpl_ptr_map["o_topic_alt"] = template_topic_alt
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func template_topic_alt(tmpl_topic_alt_vars TopicPage, w io.Writer) {
|
2017-01-17 07:55:46 +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.CurrentUser.Session))
|
|
|
|
w.Write(header_2)
|
|
|
|
w.Write(menu_0)
|
2016-12-26 04:44:07 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_1)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.CurrentUser.ID)))
|
|
|
|
w.Write(menu_2)
|
2016-12-26 04:44:07 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Is_Super_Mod {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_3)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_4)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
|
|
|
w.Write(menu_5)
|
2016-12-26 04:44:07 +00:00
|
|
|
} else {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(menu_6)
|
|
|
|
}
|
|
|
|
w.Write(menu_7)
|
|
|
|
w.Write(header_3)
|
2016-12-26 04:44:07 +00:00
|
|
|
if len(tmpl_topic_alt_vars.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.NoticeList {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(header_4)
|
|
|
|
w.Write([]byte(item))
|
|
|
|
w.Write(header_5)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Page > 1 {
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(topic_alt_0)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_1)
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page - 1)))
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write(topic_alt_2)
|
2017-01-21 18:16:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.LastPage != tmpl_topic_alt_vars.Page {
|
|
|
|
w.Write(topic_alt_3)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_4)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
|
|
|
w.Write(topic_alt_5)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_alt_6)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_7)
|
2017-01-26 13:37:50 +00:00
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_8)
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_9)
|
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_alt_10)
|
2016-12-26 04:44:07 +00:00
|
|
|
} else {
|
|
|
|
if tmpl_topic_alt_vars.Topic.Is_Closed {
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_alt_11)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_alt_12)
|
2017-01-17 07:55:46 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_alt_13)
|
2017-01-08 16:02:19 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Is_Closed {
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write(topic_alt_14)
|
2017-01-08 16:02:19 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
|
|
|
w.Write(topic_alt_15)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_16)
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CloseTopic {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_17)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write(topic_alt_18)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_19)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Avatar))
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write(topic_alt_20)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.CreatedBy)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_21)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.CreatedByName))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_22)
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Tag != "" {
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write(topic_alt_23)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Tag))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_24)
|
2017-02-15 15:29:05 +00:00
|
|
|
} else {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_25)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.Level)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_26)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_27)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Content))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_28)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Content))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_29)
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_30)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_31)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_32)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_33)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteTopic {
|
|
|
|
w.Write(topic_alt_34)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_35)
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_36)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_37)
|
2017-02-15 15:29:05 +00:00
|
|
|
} else {
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_38)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-01-21 18:16:27 +00:00
|
|
|
w.Write(topic_alt_39)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write(topic_alt_40)
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
|
|
|
w.Write(topic_alt_41)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
|
|
|
w.Write(topic_alt_42)
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
|
|
|
w.Write(topic_alt_43)
|
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IpAddress))
|
|
|
|
w.Write(topic_alt_44)
|
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.Topic.LikeCount > 0 {
|
|
|
|
w.Write(topic_alt_45)
|
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.LikeCount)))
|
|
|
|
w.Write(topic_alt_46)
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_47)
|
2017-01-26 13:37:50 +00:00
|
|
|
if len(tmpl_topic_alt_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.ItemList {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_48)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_49)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.CreatedBy)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_50)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_51)
|
2017-02-10 13:39:13 +00:00
|
|
|
if item.Tag != "" {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_52)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_53)
|
2017-02-10 13:39:13 +00:00
|
|
|
} else {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_54)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_55)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_56)
|
2017-02-11 14:51:16 +00:00
|
|
|
w.Write([]byte(item.ContentHtml))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_57)
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
|
|
|
w.Write(topic_alt_58)
|
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
|
|
|
w.Write(topic_alt_59)
|
|
|
|
}
|
2017-02-10 13:39:13 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditReply {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_60)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_61)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|
2017-01-26 13:37:50 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteReply {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_62)
|
2017-01-26 13:37:50 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_63)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_64)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_65)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_66)
|
2017-02-10 13:39:13 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_67)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(item.IpAddress))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_68)
|
2017-01-17 07:55:46 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
if item.LikeCount > 0 {
|
|
|
|
w.Write(topic_alt_69)
|
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
|
|
|
w.Write(topic_alt_70)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_71)
|
2017-02-10 13:39:13 +00:00
|
|
|
}
|
2017-02-15 15:29:05 +00:00
|
|
|
}
|
|
|
|
w.Write(topic_alt_72)
|
2017-02-10 13:39:13 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CreateReply {
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_73)
|
2017-02-10 13:39:13 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2017-02-15 15:29:05 +00:00
|
|
|
w.Write(topic_alt_74)
|
2017-01-17 07:55:46 +00:00
|
|
|
}
|
|
|
|
w.Write(footer_0)
|
2016-12-26 04:44:07 +00:00
|
|
|
}
|