`))
if len(tmpl_topic_vars.NoticeList) != 0 {
for _, item := range tmpl_topic_vars.NoticeList {
w.Write([]byte(`
` + string(tmpl_topic_vars.Topic.Content.(template.HTML)) + `
` + tmpl_topic_vars.Topic.CreatedByName + `
`))
if tmpl_topic_vars.Topic.Tag != "" {
w.Write([]byte(`
` + tmpl_topic_vars.Topic.Tag + ``))
} else {
if tmpl_topic_vars.Topic.URLName != "" {
w.Write([]byte(`
` + tmpl_topic_vars.Topic.URLName + `
` + tmpl_topic_vars.Topic.URLPrefix + ``))
}
}
w.Write([]byte(`
`))
if len(tmpl_topic_vars.ItemList) != 0 {
for _, item := range tmpl_topic_vars.ItemList {
w.Write([]byte(`
` + string(item.ContentHtml) + `
` + item.CreatedByName + `
`))
if tmpl_topic_vars.CurrentUser.Perms.EditReply {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
if tmpl_topic_vars.CurrentUser.Perms.DeleteReply {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
if item.Tag != "" {
w.Write([]byte(`
` + item.Tag + ``))
} else {
if item.URLName != "" {
w.Write([]byte(`
` + item.URLName + `
` + item.URLPrefix + ``))
}
}
w.Write([]byte(`
`))
}
}
w.Write([]byte(`