package main
import "io"
import "strconv"
func init() {
template_forums_handle = template_forums
}
func template_forums(tmpl_forums_vars Page, w io.Writer) {
w.Write([]byte(`
`))
if tmpl_forums_vars.CurrentUser.Loggedin {
w.Write([]byte(`
`))
if tmpl_forums_vars.CurrentUser.Is_Super_Mod {
w.Write([]byte(``))
}
w.Write([]byte(`
`))
} else {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
if len(tmpl_forums_vars.NoticeList) != 0 {
for _, item := range tmpl_forums_vars.NoticeList {
w.Write([]byte(`
` + item + `
`))
}
}
w.Write([]byte(`
`))
if len(tmpl_forums_vars.ItemList) != 0 {
for _, item := range tmpl_forums_vars.ItemList {
w.Write([]byte(`
`))
}
} else {
w.Write([]byte(`
You don't have access to any forums.
`))
}
w.Write([]byte(`
`))
}