// Code generated by qtc from "admin.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line views/admin.qtpl:1 package views //line views/admin.qtpl:1 import "fmt" //line views/admin.qtpl:2 import "github.com/bouncepaw/mycorrhiza/cfg" //line views/admin.qtpl:3 import "github.com/bouncepaw/mycorrhiza/l18n" //line views/admin.qtpl:4 import "github.com/bouncepaw/mycorrhiza/user" //line views/admin.qtpl:5 import "github.com/bouncepaw/mycorrhiza/util" //line views/admin.qtpl:7 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/admin.qtpl:7 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/admin.qtpl:7 func StreamAdminPanelHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { //line views/admin.qtpl:7 qw422016.N().S(`

`) //line views/admin.qtpl:10 qw422016.E().S(lc.Get("admin.panel_title")) //line views/admin.qtpl:10 qw422016.N().S(`

`) //line views/admin.qtpl:12 qw422016.E().S(lc.Get("admin.panel_safe")) //line views/admin.qtpl:12 qw422016.N().S(`

`) //line views/admin.qtpl:21 qw422016.E().S(lc.Get("admin.panel_unsafe")) //line views/admin.qtpl:21 qw422016.N().S(`

`) //line views/admin.qtpl:24 qw422016.E().S(lc.Get("admin.panel_shutdown")) //line views/admin.qtpl:24 qw422016.N().S(`
`) //line views/admin.qtpl:30 qw422016.E().S(lc.Get("admin.panel_reindex")) //line views/admin.qtpl:30 qw422016.N().S(`
`) //line views/admin.qtpl:37 } //line views/admin.qtpl:37 func WriteAdminPanelHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) { //line views/admin.qtpl:37 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:37 StreamAdminPanelHTML(qw422016, lc) //line views/admin.qtpl:37 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:37 } //line views/admin.qtpl:37 func AdminPanelHTML(lc *l18n.Localizer) string { //line views/admin.qtpl:37 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:37 WriteAdminPanelHTML(qb422016, lc) //line views/admin.qtpl:37 qs422016 := string(qb422016.B) //line views/admin.qtpl:37 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:37 return qs422016 //line views/admin.qtpl:37 } //line views/admin.qtpl:39 func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User, lc *l18n.Localizer) { //line views/admin.qtpl:39 qw422016.N().S(`

`) //line views/admin.qtpl:42 qw422016.E().S(lc.Get("admin.users_title")) //line views/admin.qtpl:42 qw422016.N().S(`

`) //line views/admin.qtpl:45 qw422016.E().S(lc.Get("admin.users_create")) //line views/admin.qtpl:45 qw422016.N().S(`

`) //line views/admin.qtpl:61 for _, u := range userList { //line views/admin.qtpl:61 qw422016.N().S(` `) //line views/admin.qtpl:78 } //line views/admin.qtpl:78 qw422016.N().S(`
`) //line views/admin.qtpl:54 qw422016.E().S(lc.Get("admin.users_name")) //line views/admin.qtpl:54 qw422016.N().S(` `) //line views/admin.qtpl:55 qw422016.E().S(lc.Get("admin.users_group")) //line views/admin.qtpl:55 qw422016.N().S(` `) //line views/admin.qtpl:56 qw422016.E().S(lc.Get("admin.users_registered")) //line views/admin.qtpl:56 qw422016.N().S(`
`) //line views/admin.qtpl:64 qw422016.E().S(u.Name) //line views/admin.qtpl:64 qw422016.N().S(` `) //line views/admin.qtpl:66 qw422016.E().S(u.Group) //line views/admin.qtpl:66 qw422016.N().S(` `) //line views/admin.qtpl:68 if u.RegisteredAt.IsZero() { //line views/admin.qtpl:68 qw422016.N().S(` `) //line views/admin.qtpl:69 qw422016.E().S(lc.Get("admin.users_notime")) //line views/admin.qtpl:69 qw422016.N().S(` `) //line views/admin.qtpl:70 } else { //line views/admin.qtpl:70 qw422016.N().S(` `) //line views/admin.qtpl:71 qw422016.E().S(u.RegisteredAt.UTC().Format("2006-01-02 15:04")) //line views/admin.qtpl:71 qw422016.N().S(` `) //line views/admin.qtpl:72 } //line views/admin.qtpl:72 qw422016.N().S(` `) //line views/admin.qtpl:75 qw422016.E().S(lc.Get("admin.users_edit")) //line views/admin.qtpl:75 qw422016.N().S(`
`) //line views/admin.qtpl:83 } //line views/admin.qtpl:83 func WriteAdminUsersPanelHTML(qq422016 qtio422016.Writer, userList []*user.User, lc *l18n.Localizer) { //line views/admin.qtpl:83 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:83 StreamAdminUsersPanelHTML(qw422016, userList, lc) //line views/admin.qtpl:83 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:83 } //line views/admin.qtpl:83 func AdminUsersPanelHTML(userList []*user.User, lc *l18n.Localizer) string { //line views/admin.qtpl:83 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:83 WriteAdminUsersPanelHTML(qb422016, userList, lc) //line views/admin.qtpl:83 qs422016 := string(qb422016.B) //line views/admin.qtpl:83 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:83 return qs422016 //line views/admin.qtpl:83 } //line views/admin.qtpl:85 func StreamAdminUserNewHTML(qw422016 *qt422016.Writer, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:85 qw422016.N().S(`

`) //line views/admin.qtpl:88 qw422016.E().S(lc.Get("admin.newuser_title")) //line views/admin.qtpl:88 qw422016.N().S(`

`) //line views/admin.qtpl:90 if f.HasError() { //line views/admin.qtpl:90 qw422016.N().S(`
`) //line views/admin.qtpl:92 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:92 qw422016.N().S(`: `) //line views/admin.qtpl:93 qw422016.E().S(f.Error()) //line views/admin.qtpl:93 qw422016.N().S(`
`) //line views/admin.qtpl:95 } //line views/admin.qtpl:95 qw422016.N().S(`
`) //line views/admin.qtpl:122 qw422016.E().S(lc.Get("ui.cancel")) //line views/admin.qtpl:122 qw422016.N().S(`
`) //line views/admin.qtpl:128 } //line views/admin.qtpl:128 func WriteAdminUserNewHTML(qq422016 qtio422016.Writer, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:128 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:128 StreamAdminUserNewHTML(qw422016, f, lc) //line views/admin.qtpl:128 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:128 } //line views/admin.qtpl:128 func AdminUserNewHTML(f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:128 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:128 WriteAdminUserNewHTML(qb422016, f, lc) //line views/admin.qtpl:128 qs422016 := string(qb422016.B) //line views/admin.qtpl:128 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:128 return qs422016 //line views/admin.qtpl:128 } //line views/admin.qtpl:130 func StreamAdminUserEditHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:130 qw422016.N().S(`

`) //line views/admin.qtpl:135 qw422016.E().S(u.Name) //line views/admin.qtpl:135 qw422016.N().S(`

`) //line views/admin.qtpl:138 qw422016.E().S(lc.Get("admin.user_group_heading")) //line views/admin.qtpl:138 qw422016.N().S(`

`) //line views/admin.qtpl:140 if f.HasError() { //line views/admin.qtpl:140 qw422016.N().S(`
`) //line views/admin.qtpl:142 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:142 qw422016.N().S(`: `) //line views/admin.qtpl:143 qw422016.E().S(f.Error()) //line views/admin.qtpl:143 qw422016.N().S(`
`) //line views/admin.qtpl:145 } //line views/admin.qtpl:145 qw422016.N().S(`

`) //line views/admin.qtpl:163 qw422016.E().S(lc.Get("admin.user_delete_heading")) //line views/admin.qtpl:163 qw422016.N().S(`

`) //line views/admin.qtpl:164 qw422016.E().S(lc.Get("admin.user_delete_tip")) //line views/admin.qtpl:164 qw422016.N().S(`

`) //line views/admin.qtpl:165 qw422016.E().S(lc.Get("admin.user_delete")) //line views/admin.qtpl:165 qw422016.N().S(`
`) //line views/admin.qtpl:168 } //line views/admin.qtpl:168 func WriteAdminUserEditHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:168 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:168 StreamAdminUserEditHTML(qw422016, u, f, lc) //line views/admin.qtpl:168 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:168 } //line views/admin.qtpl:168 func AdminUserEditHTML(u *user.User, f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:168 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:168 WriteAdminUserEditHTML(qb422016, u, f, lc) //line views/admin.qtpl:168 qs422016 := string(qb422016.B) //line views/admin.qtpl:168 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:168 return qs422016 //line views/admin.qtpl:168 } //line views/admin.qtpl:170 func StreamAdminUserDeleteHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:170 qw422016.N().S(`

`) //line views/admin.qtpl:173 qw422016.E().S(lc.Get("admin.user_delete_heading")) //line views/admin.qtpl:173 qw422016.N().S(`

`) //line views/admin.qtpl:175 if f.HasError() { //line views/admin.qtpl:175 qw422016.N().S(`
`) //line views/admin.qtpl:177 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:177 qw422016.N().S(`: `) //line views/admin.qtpl:178 qw422016.E().S(f.Error()) //line views/admin.qtpl:178 qw422016.N().S(`
`) //line views/admin.qtpl:180 } //line views/admin.qtpl:180 qw422016.N().S(`

`) //line views/admin.qtpl:182 qw422016.N().S(lc.Get("admin.user_delete_warn", &l18n.Replacements{"name": fmt.Sprintf("%s", u.Name)})) //line views/admin.qtpl:182 qw422016.N().S(`

`) //line views/admin.qtpl:186 qw422016.E().S(lc.Get("ui.cancel")) //line views/admin.qtpl:186 qw422016.N().S(`
`) //line views/admin.qtpl:190 } //line views/admin.qtpl:190 func WriteAdminUserDeleteHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:190 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:190 StreamAdminUserDeleteHTML(qw422016, u, f, lc) //line views/admin.qtpl:190 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:190 } //line views/admin.qtpl:190 func AdminUserDeleteHTML(u *user.User, f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:190 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:190 WriteAdminUserDeleteHTML(qb422016, u, f, lc) //line views/admin.qtpl:190 qs422016 := string(qb422016.B) //line views/admin.qtpl:190 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:190 return qs422016 //line views/admin.qtpl:190 }