// +build !no_templategen // Code generated by Gosora. More below: /* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */ package main import "net/http" import "./common" import "./extend/guilds/lib" import "strconv" // nolint func init() { common.TmplPtrMap["o_guilds_guild_list"] = Template_guilds_guild_list } // nolint func Template_guilds_guild_list(tmpl_guilds_guild_list_vars guilds.ListPage, w http.ResponseWriter) error { w.Write(header_0) w.Write([]byte(tmpl_guilds_guild_list_vars.Title)) w.Write(header_1) w.Write([]byte(tmpl_guilds_guild_list_vars.Header.Site.Name)) w.Write(header_2) w.Write([]byte(tmpl_guilds_guild_list_vars.Header.Theme.Name)) w.Write(header_3) if len(tmpl_guilds_guild_list_vars.Header.Stylesheets) != 0 { for _, item := range tmpl_guilds_guild_list_vars.Header.Stylesheets { w.Write(header_4) w.Write([]byte(item)) w.Write(header_5) } } w.Write(header_6) if len(tmpl_guilds_guild_list_vars.Header.Scripts) != 0 { for _, item := range tmpl_guilds_guild_list_vars.Header.Scripts { w.Write(header_7) w.Write([]byte(item)) w.Write(header_8) } } w.Write(header_9) w.Write([]byte(tmpl_guilds_guild_list_vars.CurrentUser.Session)) w.Write(header_10) w.Write([]byte(tmpl_guilds_guild_list_vars.Header.Site.URL)) w.Write(header_11) if !tmpl_guilds_guild_list_vars.CurrentUser.IsSuperMod { w.Write(header_12) } w.Write(header_13) w.Write(menu_0) w.Write(menu_1) w.Write([]byte(tmpl_guilds_guild_list_vars.Header.Site.ShortName)) w.Write(menu_2) if tmpl_guilds_guild_list_vars.CurrentUser.Loggedin { w.Write(menu_3) w.Write([]byte(tmpl_guilds_guild_list_vars.CurrentUser.Link)) w.Write(menu_4) w.Write([]byte(tmpl_guilds_guild_list_vars.CurrentUser.Session)) w.Write(menu_5) } else { w.Write(menu_6) } w.Write(menu_7) w.Write(header_14) if tmpl_guilds_guild_list_vars.Header.Widgets.RightSidebar != "" { w.Write(header_15) } w.Write(header_16) if len(tmpl_guilds_guild_list_vars.Header.NoticeList) != 0 { for _, item := range tmpl_guilds_guild_list_vars.Header.NoticeList { w.Write(header_17) w.Write([]byte(item)) w.Write(header_18) } } w.Write(guilds_guild_list_0) if len(tmpl_guilds_guild_list_vars.GuildList) != 0 { for _, item := range tmpl_guilds_guild_list_vars.GuildList { w.Write(guilds_guild_list_1) w.Write([]byte(item.Link)) w.Write(guilds_guild_list_2) w.Write([]byte(item.Name)) w.Write(guilds_guild_list_3) w.Write([]byte(item.Desc)) w.Write(guilds_guild_list_4) w.Write([]byte(strconv.Itoa(item.MemberCount))) w.Write(guilds_guild_list_5) w.Write([]byte(item.LastUpdateTime)) w.Write(guilds_guild_list_6) } } else { w.Write(guilds_guild_list_7) } w.Write(guilds_guild_list_8) if tmpl_guilds_guild_list_vars.Header.Theme.AboutSegment { w.Write(footer_0) dispInt := tmpl_guilds_guild_list_vars.Header.Settings["about_segment_title"] w.Write([]byte(dispInt.(string))) w.Write(footer_1) dispInt = tmpl_guilds_guild_list_vars.Header.Settings["about_segment_body"] w.Write([]byte(dispInt.(string))) w.Write(footer_2) } w.Write(footer_3) if len(tmpl_guilds_guild_list_vars.Header.Themes) != 0 { for _, item := range tmpl_guilds_guild_list_vars.Header.Themes { if !item.HideFromThemes { w.Write(footer_4) w.Write([]byte(item.Name)) w.Write(footer_5) if tmpl_guilds_guild_list_vars.Header.Theme.Name == item.Name { w.Write(footer_6) } w.Write(footer_7) w.Write([]byte(item.FriendlyName)) w.Write(footer_8) } } } w.Write(footer_9) if tmpl_guilds_guild_list_vars.Header.Widgets.RightSidebar != "" { w.Write(footer_10) w.Write([]byte(string(tmpl_guilds_guild_list_vars.Header.Widgets.RightSidebar))) w.Write(footer_11) } w.Write(footer_12) return nil }