package main
import "strconv"
func init() {
ctemplates["topic"] = template_topic
}
func template_topic(tmpl_topic_vars Page) (tmpl string) {
var extra_data TopicUser = tmpl_topic_vars.Something.(TopicUser)
tmpl += `
`
tmpl += `
`
if tmpl_topic_vars.CurrentUser.Loggedin {
tmpl += `
`
if tmpl_topic_vars.CurrentUser.Is_Super_Mod {
tmpl += ``
}
tmpl += `
`
} else {
tmpl += `
`
}
tmpl += `
`
tmpl += `
`
if len(tmpl_topic_vars.NoticeList) != 0 {
for _, item := range tmpl_topic_vars.NoticeList {
tmpl += `
`
tmpl += item
tmpl += `
`
}
}
tmpl += `
`
if len(tmpl_topic_vars.ItemList) != 0 {
for _, item := range tmpl_topic_vars.ItemList {
tmpl += `
`
}
}
tmpl += `
`
if !tmpl_topic_vars.CurrentUser.Is_Banned {
tmpl += `
`
}
tmpl += `
`
tmpl += `
`
return tmpl
}