package main
import "io"
import "strconv"
import "html/template"
/*func init() {
ctemplates["topic"] = template_topic
}*/
func template_topic2(tmpl_topic_vars Page, w io.Writer) {
var extra_data TopicUser = tmpl_topic_vars.Something.(TopicUser)
w.Write([]byte(`
`))
w.Write([]byte(`
`))
if tmpl_topic_vars.CurrentUser.Loggedin {
w.Write([]byte(`
`))
if tmpl_topic_vars.CurrentUser.Is_Super_Mod {
w.Write([]byte(``))
}
w.Write([]byte(`
`))
} else {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
w.Write([]byte(`
`))
if len(tmpl_topic_vars.NoticeList) != 0 {
for _, item := range tmpl_topic_vars.NoticeList {
w.Write([]byte(`
`))
w.Write([]byte(item))
w.Write([]byte(`
`))
}
}
w.Write([]byte(`
`))
if len(tmpl_topic_vars.ItemList) != 0 {
for _, item := range tmpl_topic_vars.ItemList {
w.Write([]byte(`
`))
}
}
w.Write([]byte(`
`))
if !tmpl_topic_vars.CurrentUser.Is_Banned {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
w.Write([]byte(`
`))
}