// 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 "github.com/bouncepaw/mycorrhiza/cfg" //line views/admin.qtpl:2 import "github.com/bouncepaw/mycorrhiza/user" //line views/admin.qtpl:3 import "github.com/bouncepaw/mycorrhiza/util" //line views/admin.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/admin.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/admin.qtpl:5 func StreamAdminPanelHTML(qw422016 *qt422016.Writer) { //line views/admin.qtpl:5 qw422016.N().S(`

Administrative functions

Safe things

Dangerous things

Shutdown wiki
Reindex hyphae
`) //line views/admin.qtpl:35 } //line views/admin.qtpl:35 func WriteAdminPanelHTML(qq422016 qtio422016.Writer) { //line views/admin.qtpl:35 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:35 StreamAdminPanelHTML(qw422016) //line views/admin.qtpl:35 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:35 } //line views/admin.qtpl:35 func AdminPanelHTML() string { //line views/admin.qtpl:35 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:35 WriteAdminPanelHTML(qb422016) //line views/admin.qtpl:35 qs422016 := string(qb422016.B) //line views/admin.qtpl:35 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:35 return qs422016 //line views/admin.qtpl:35 } //line views/admin.qtpl:37 func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User) { //line views/admin.qtpl:37 qw422016.N().S(`

Manage users

Create a new user

`) //line views/admin.qtpl:59 for _, u := range userList { //line views/admin.qtpl:59 qw422016.N().S(` `) //line views/admin.qtpl:76 } //line views/admin.qtpl:76 qw422016.N().S(`
Name Group Registered at
`) //line views/admin.qtpl:62 qw422016.E().S(u.Name) //line views/admin.qtpl:62 qw422016.N().S(` `) //line views/admin.qtpl:64 qw422016.E().S(u.Group) //line views/admin.qtpl:64 qw422016.N().S(` `) //line views/admin.qtpl:66 if u.RegisteredAt.IsZero() { //line views/admin.qtpl:66 qw422016.N().S(` unknown `) //line views/admin.qtpl:68 } else { //line views/admin.qtpl:68 qw422016.N().S(` `) //line views/admin.qtpl:69 qw422016.E().S(u.RegisteredAt.UTC().Format("2006-01-02 15:04")) //line views/admin.qtpl:69 qw422016.N().S(` `) //line views/admin.qtpl:70 } //line views/admin.qtpl:70 qw422016.N().S(` Edit
`) //line views/admin.qtpl:81 } //line views/admin.qtpl:81 func WriteAdminUsersPanelHTML(qq422016 qtio422016.Writer, userList []*user.User) { //line views/admin.qtpl:81 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:81 StreamAdminUsersPanelHTML(qw422016, userList) //line views/admin.qtpl:81 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:81 } //line views/admin.qtpl:81 func AdminUsersPanelHTML(userList []*user.User) string { //line views/admin.qtpl:81 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:81 WriteAdminUsersPanelHTML(qb422016, userList) //line views/admin.qtpl:81 qs422016 := string(qb422016.B) //line views/admin.qtpl:81 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:81 return qs422016 //line views/admin.qtpl:81 } //line views/admin.qtpl:83 func StreamAdminUserNewHTML(qw422016 *qt422016.Writer, f util.FormData) { //line views/admin.qtpl:83 qw422016.N().S(`

New user

`) //line views/admin.qtpl:88 if f.HasError() { //line views/admin.qtpl:88 qw422016.N().S(`
Error: `) //line views/admin.qtpl:91 qw422016.E().S(f.Error()) //line views/admin.qtpl:91 qw422016.N().S(`
`) //line views/admin.qtpl:93 } //line views/admin.qtpl:93 qw422016.N().S(`
Cancel
`) //line views/admin.qtpl:126 } //line views/admin.qtpl:126 func WriteAdminUserNewHTML(qq422016 qtio422016.Writer, f util.FormData) { //line views/admin.qtpl:126 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:126 StreamAdminUserNewHTML(qw422016, f) //line views/admin.qtpl:126 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:126 } //line views/admin.qtpl:126 func AdminUserNewHTML(f util.FormData) string { //line views/admin.qtpl:126 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:126 WriteAdminUserNewHTML(qb422016, f) //line views/admin.qtpl:126 qs422016 := string(qb422016.B) //line views/admin.qtpl:126 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:126 return qs422016 //line views/admin.qtpl:126 } //line views/admin.qtpl:128 func StreamAdminUserEditHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData) { //line views/admin.qtpl:128 qw422016.N().S(`

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

Change group

`) //line views/admin.qtpl:138 if f.HasError() { //line views/admin.qtpl:138 qw422016.N().S(`
Error: `) //line views/admin.qtpl:141 qw422016.E().S(f.Error()) //line views/admin.qtpl:141 qw422016.N().S(`
`) //line views/admin.qtpl:143 } //line views/admin.qtpl:143 qw422016.N().S(`

Delete user

Remove the user from the database. Changes made by the user will be preserved. It will be possible to take this username later.

Delete
`) //line views/admin.qtpl:167 } //line views/admin.qtpl:167 func WriteAdminUserEditHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData) { //line views/admin.qtpl:167 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:167 StreamAdminUserEditHTML(qw422016, u, f) //line views/admin.qtpl:167 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:167 } //line views/admin.qtpl:167 func AdminUserEditHTML(u *user.User, f util.FormData) string { //line views/admin.qtpl:167 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:167 WriteAdminUserEditHTML(qb422016, u, f) //line views/admin.qtpl:167 qs422016 := string(qb422016.B) //line views/admin.qtpl:167 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:167 return qs422016 //line views/admin.qtpl:167 } //line views/admin.qtpl:169 func StreamAdminUserDeleteHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData) { //line views/admin.qtpl:169 qw422016.N().S(`

Delete user

`) //line views/admin.qtpl:174 if f.HasError() { //line views/admin.qtpl:174 qw422016.N().S(`
Error: `) //line views/admin.qtpl:177 qw422016.E().S(f.Error()) //line views/admin.qtpl:177 qw422016.N().S(`
`) //line views/admin.qtpl:179 } //line views/admin.qtpl:179 qw422016.N().S(`

Are you sure you want to delete `) //line views/admin.qtpl:181 qw422016.E().S(u.Name) //line views/admin.qtpl:181 qw422016.N().S(` from the database? This action is irreversible.

Cancel
`) //line views/admin.qtpl:190 } //line views/admin.qtpl:190 func WriteAdminUserDeleteHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData) { //line views/admin.qtpl:190 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:190 StreamAdminUserDeleteHTML(qw422016, u, f) //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) string { //line views/admin.qtpl:190 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:190 WriteAdminUserDeleteHTML(qb422016, u, f) //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 }