From baf1b0d137d9a511198844f8cc4cb753f6677660 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Sun, 2 Jan 2022 23:34:09 +0500 Subject: [PATCH] Remove the admin panel from the top bar It is available in the profile now --- views/stuff.qtpl | 5 - views/stuff.qtpl.go | 929 ++++++++++++++++++++++---------------------- 2 files changed, 456 insertions(+), 478 deletions(-) diff --git a/views/stuff.qtpl b/views/stuff.qtpl index 0ddaed6..97bb5cb 100644 --- a/views/stuff.qtpl +++ b/views/stuff.qtpl @@ -49,11 +49,6 @@ {%s lc.Get("ui.register") %} {% endif %} - {% if u.Group == "admin" %} - - {% endif %} {% endif %} diff --git a/views/stuff.qtpl.go b/views/stuff.qtpl.go index 63899d7..9772b95 100644 --- a/views/stuff.qtpl.go +++ b/views/stuff.qtpl.go @@ -152,71 +152,54 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, lc *l18n.Loca //line views/stuff.qtpl:51 } //line views/stuff.qtpl:51 - qw422016.N().S(` - `) -//line views/stuff.qtpl:52 - if u.Group == "admin" { -//line views/stuff.qtpl:52 - qw422016.N().S(` - - `) -//line views/stuff.qtpl:56 - } -//line views/stuff.qtpl:56 qw422016.N().S(` `) -//line views/stuff.qtpl:58 +//line views/stuff.qtpl:53 } -//line views/stuff.qtpl:58 +//line views/stuff.qtpl:53 qw422016.N().S(`
  • `) -//line views/stuff.qtpl:74 +//line views/stuff.qtpl:69 qw422016.N().S(body) -//line views/stuff.qtpl:74 +//line views/stuff.qtpl:69 qw422016.N().S(` `) -//line views/stuff.qtpl:86 +//line views/stuff.qtpl:81 StreamCommonScripts(qw422016) -//line views/stuff.qtpl:86 +//line views/stuff.qtpl:81 qw422016.N().S(` `) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 } -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) { -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 StreamBaseHTML(qw422016, title, body, lc, u, headElements...) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 } -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 func BaseHTML(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) string { -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 WriteBaseHTML(qb422016, title, body, lc, u, headElements...) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 return qs422016 -//line views/stuff.qtpl:90 +//line views/stuff.qtpl:85 } -//line views/stuff.qtpl:92 +//line views/stuff.qtpl:87 func StreamTitleSearchHTML(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) { -//line views/stuff.qtpl:92 +//line views/stuff.qtpl:87 qw422016.N().S(`

    `) -//line views/stuff.qtpl:95 +//line views/stuff.qtpl:90 qw422016.E().S(lc.Get("ui.search_results_query", &l18n.Replacements{"query": query})) -//line views/stuff.qtpl:95 +//line views/stuff.qtpl:90 qw422016.N().S(`

    `) -//line views/stuff.qtpl:96 +//line views/stuff.qtpl:91 qw422016.E().S(lc.Get("ui.search_results_desc")) -//line views/stuff.qtpl:96 +//line views/stuff.qtpl:91 qw422016.N().S(`

    `) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 } -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 func WriteTitleSearchHTML(qq422016 qtio422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) { -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 StreamTitleSearchHTML(qw422016, query, generator, lc) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 } -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 func TitleSearchHTML(query string, generator func(string) <-chan string, lc *l18n.Localizer) string { -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 WriteTitleSearchHTML(qb422016, query, generator, lc) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 return qs422016 -//line views/stuff.qtpl:105 +//line views/stuff.qtpl:100 } // It outputs a poorly formatted JSON, but it works and is valid. -//line views/stuff.qtpl:108 +//line views/stuff.qtpl:103 func StreamTitleSearchJSON(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string) { -//line views/stuff.qtpl:108 +//line views/stuff.qtpl:103 qw422016.N().S(` `) -//line views/stuff.qtpl:110 +//line views/stuff.qtpl:105 // Lol counter := 0 -//line views/stuff.qtpl:112 +//line views/stuff.qtpl:107 qw422016.N().S(` { "source_query": "`) -//line views/stuff.qtpl:114 +//line views/stuff.qtpl:109 qw422016.E().S(query) -//line views/stuff.qtpl:114 +//line views/stuff.qtpl:109 qw422016.N().S(`", "results": [ `) -//line views/stuff.qtpl:116 +//line views/stuff.qtpl:111 for hyphaName := range generator(query) { -//line views/stuff.qtpl:116 +//line views/stuff.qtpl:111 qw422016.N().S(` `) -//line views/stuff.qtpl:117 +//line views/stuff.qtpl:112 if counter > 0 { -//line views/stuff.qtpl:117 +//line views/stuff.qtpl:112 qw422016.N().S(`, `) -//line views/stuff.qtpl:117 +//line views/stuff.qtpl:112 } -//line views/stuff.qtpl:117 +//line views/stuff.qtpl:112 qw422016.N().S(`{ "canonical_name": "`) -//line views/stuff.qtpl:118 +//line views/stuff.qtpl:113 qw422016.E().S(hyphaName) -//line views/stuff.qtpl:118 +//line views/stuff.qtpl:113 qw422016.N().S(`", "beautiful_name": "`) -//line views/stuff.qtpl:119 +//line views/stuff.qtpl:114 qw422016.E().S(util.BeautifulName(hyphaName)) -//line views/stuff.qtpl:119 +//line views/stuff.qtpl:114 qw422016.N().S(`", "url": "`) -//line views/stuff.qtpl:120 +//line views/stuff.qtpl:115 qw422016.E().S(cfg.URL + "/hypha/" + hyphaName) -//line views/stuff.qtpl:120 +//line views/stuff.qtpl:115 qw422016.N().S(`" }`) -//line views/stuff.qtpl:121 +//line views/stuff.qtpl:116 counter++ -//line views/stuff.qtpl:121 +//line views/stuff.qtpl:116 qw422016.N().S(` `) -//line views/stuff.qtpl:122 +//line views/stuff.qtpl:117 } -//line views/stuff.qtpl:122 +//line views/stuff.qtpl:117 qw422016.N().S(` ] } `) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 } -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 func WriteTitleSearchJSON(qq422016 qtio422016.Writer, query string, generator func(string) <-chan string) { -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 StreamTitleSearchJSON(qw422016, query, generator) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 } -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 func TitleSearchJSON(query string, generator func(string) <-chan string) string { -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 WriteTitleSearchJSON(qb422016, query, generator) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 return qs422016 -//line views/stuff.qtpl:125 +//line views/stuff.qtpl:120 } -//line views/stuff.qtpl:127 +//line views/stuff.qtpl:122 func StreamBacklinksHTML(qw422016 *qt422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) { -//line views/stuff.qtpl:127 +//line views/stuff.qtpl:122 qw422016.N().S(`

    `) -//line views/stuff.qtpl:130 +//line views/stuff.qtpl:125 qw422016.N().S(lc.Get( "ui.backlinks_heading", &l18n.Replacements{ @@ -451,418 +434,418 @@ func StreamBacklinksHTML(qw422016 *qt422016.Writer, hyphaName string, generator ), }, )) -//line views/stuff.qtpl:139 +//line views/stuff.qtpl:134 qw422016.N().S(`

    `) -//line views/stuff.qtpl:140 +//line views/stuff.qtpl:135 qw422016.E().S(lc.Get("ui.backlinks_desc")) -//line views/stuff.qtpl:140 +//line views/stuff.qtpl:135 qw422016.N().S(`

    `) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 } -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 func WriteBacklinksHTML(qq422016 qtio422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) { -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 StreamBacklinksHTML(qw422016, hyphaName, generator, lc) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 } -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 func BacklinksHTML(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) string { -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 WriteBacklinksHTML(qb422016, hyphaName, generator, lc) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 return qs422016 -//line views/stuff.qtpl:150 +//line views/stuff.qtpl:145 } -//line views/stuff.qtpl:152 +//line views/stuff.qtpl:147 func StreamHelpHTML(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Localizer) { -//line views/stuff.qtpl:152 +//line views/stuff.qtpl:147 qw422016.N().S(`
    `) -//line views/stuff.qtpl:156 +//line views/stuff.qtpl:151 qw422016.N().S(content) -//line views/stuff.qtpl:156 +//line views/stuff.qtpl:151 qw422016.N().S(`
    `) -//line views/stuff.qtpl:159 +//line views/stuff.qtpl:154 qw422016.N().S(helpTopicsHTML(lang, lc)) -//line views/stuff.qtpl:159 +//line views/stuff.qtpl:154 qw422016.N().S(`
    `) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 } -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 func WriteHelpHTML(qq422016 qtio422016.Writer, content, lang string, lc *l18n.Localizer) { -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 StreamHelpHTML(qw422016, content, lang, lc) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 } -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 func HelpHTML(content, lang string, lc *l18n.Localizer) string { -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 WriteHelpHTML(qb422016, content, lang, lc) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 return qs422016 -//line views/stuff.qtpl:161 +//line views/stuff.qtpl:156 } -//line views/stuff.qtpl:163 +//line views/stuff.qtpl:158 func StreamHelpEmptyErrorHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:163 +//line views/stuff.qtpl:158 qw422016.N().S(`

    `) -//line views/stuff.qtpl:164 +//line views/stuff.qtpl:159 qw422016.E().S(lc.Get("help.empty_error_title")) -//line views/stuff.qtpl:164 +//line views/stuff.qtpl:159 qw422016.N().S(`

    `) -//line views/stuff.qtpl:165 +//line views/stuff.qtpl:160 qw422016.E().S(lc.Get("help.empty_error_line_1")) -//line views/stuff.qtpl:165 +//line views/stuff.qtpl:160 qw422016.N().S(`

    `) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.E().S(lc.Get("help.empty_error_line_2a")) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.N().S(` `) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.E().S(lc.Get("help.empty_error_link")) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.N().S(` `) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.E().S(lc.Get("help.empty_error_line_2b")) -//line views/stuff.qtpl:166 +//line views/stuff.qtpl:161 qw422016.N().S(`

    `) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 } -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 func WriteHelpEmptyErrorHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 StreamHelpEmptyErrorHTML(qw422016, lc) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 } -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 func HelpEmptyErrorHTML(lc *l18n.Localizer) string { -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 WriteHelpEmptyErrorHTML(qb422016, lc) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 return qs422016 -//line views/stuff.qtpl:167 +//line views/stuff.qtpl:162 } -//line views/stuff.qtpl:169 +//line views/stuff.qtpl:164 func streamhelpTopicsHTML(qw422016 *qt422016.Writer, lang string, lc *l18n.Localizer) { -//line views/stuff.qtpl:169 +//line views/stuff.qtpl:164 qw422016.N().S(` `) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 } -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 func writehelpTopicsHTML(qq422016 qtio422016.Writer, lang string, lc *l18n.Localizer) { -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 streamhelpTopicsHTML(qw422016, lang, lc) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 } -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 func helpTopicsHTML(lang string, lc *l18n.Localizer) string { -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 writehelpTopicsHTML(qb422016, lang, lc) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 return qs422016 -//line views/stuff.qtpl:203 +//line views/stuff.qtpl:198 } -//line views/stuff.qtpl:205 +//line views/stuff.qtpl:200 func streamhelpTopicBadgeHTML(qw422016 *qt422016.Writer, lang, topic string) { -//line views/stuff.qtpl:205 +//line views/stuff.qtpl:200 qw422016.N().S(` ? `) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 } -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 func writehelpTopicBadgeHTML(qq422016 qtio422016.Writer, lang, topic string) { -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 streamhelpTopicBadgeHTML(qw422016, lang, topic) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 } -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 func helpTopicBadgeHTML(lang, topic string) string { -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 writehelpTopicBadgeHTML(qb422016, lang, topic) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 return qs422016 -//line views/stuff.qtpl:207 +//line views/stuff.qtpl:202 } -//line views/stuff.qtpl:209 +//line views/stuff.qtpl:204 func StreamUserListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:209 +//line views/stuff.qtpl:204 qw422016.N().S(`

    `) -//line views/stuff.qtpl:212 +//line views/stuff.qtpl:207 qw422016.E().S(lc.Get("ui.users_heading")) -//line views/stuff.qtpl:212 +//line views/stuff.qtpl:207 qw422016.N().S(`

    `) -//line views/stuff.qtpl:214 +//line views/stuff.qtpl:209 var ( admins = make([]string, 0) moderators = make([]string, 0) @@ -882,149 +865,149 @@ func StreamUserListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { sort.Strings(moderators) sort.Strings(editors) -//line views/stuff.qtpl:232 +//line views/stuff.qtpl:227 qw422016.N().S(`

    `) -//line views/stuff.qtpl:234 +//line views/stuff.qtpl:229 qw422016.E().S(lc.Get("ui.users_admins")) -//line views/stuff.qtpl:234 +//line views/stuff.qtpl:229 qw422016.N().S(`

      `) -//line views/stuff.qtpl:235 +//line views/stuff.qtpl:230 for _, name := range admins { +//line views/stuff.qtpl:230 + qw422016.N().S(` +
    1. `) +//line views/stuff.qtpl:231 + qw422016.E().S(name) +//line views/stuff.qtpl:231 + qw422016.N().S(`
    2. + `) +//line views/stuff.qtpl:232 + } +//line views/stuff.qtpl:232 + qw422016.N().S(`
    +
    +
    +

    `) //line views/stuff.qtpl:235 - qw422016.N().S(` -
  • `) -//line views/stuff.qtpl:236 - qw422016.E().S(name) -//line views/stuff.qtpl:236 - qw422016.N().S(`
  • - `) -//line views/stuff.qtpl:237 - } -//line views/stuff.qtpl:237 - qw422016.N().S(` -

    -
    -

    `) -//line views/stuff.qtpl:240 qw422016.E().S(lc.Get("ui.users_moderators")) -//line views/stuff.qtpl:240 +//line views/stuff.qtpl:235 qw422016.N().S(`

      `) -//line views/stuff.qtpl:241 +//line views/stuff.qtpl:236 for _, name := range moderators { -//line views/stuff.qtpl:241 +//line views/stuff.qtpl:236 qw422016.N().S(`
    1. `) -//line views/stuff.qtpl:242 +//line views/stuff.qtpl:237 qw422016.E().S(name) -//line views/stuff.qtpl:242 +//line views/stuff.qtpl:237 qw422016.N().S(`
    2. `) -//line views/stuff.qtpl:243 +//line views/stuff.qtpl:238 } -//line views/stuff.qtpl:243 +//line views/stuff.qtpl:238 qw422016.N().S(`

    `) -//line views/stuff.qtpl:246 +//line views/stuff.qtpl:241 qw422016.E().S(lc.Get("ui.users_editors")) -//line views/stuff.qtpl:246 +//line views/stuff.qtpl:241 qw422016.N().S(`

      `) -//line views/stuff.qtpl:247 +//line views/stuff.qtpl:242 for _, name := range editors { -//line views/stuff.qtpl:247 +//line views/stuff.qtpl:242 qw422016.N().S(`
    1. `) -//line views/stuff.qtpl:248 +//line views/stuff.qtpl:243 qw422016.E().S(name) -//line views/stuff.qtpl:248 +//line views/stuff.qtpl:243 qw422016.N().S(`
    2. `) -//line views/stuff.qtpl:249 +//line views/stuff.qtpl:244 } -//line views/stuff.qtpl:249 +//line views/stuff.qtpl:244 qw422016.N().S(`
    `) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 } -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 func WriteUserListHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 StreamUserListHTML(qw422016, lc) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 } -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 func UserListHTML(lc *l18n.Localizer) string { -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 WriteUserListHTML(qb422016, lc) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 return qs422016 -//line views/stuff.qtpl:253 +//line views/stuff.qtpl:248 } -//line views/stuff.qtpl:255 +//line views/stuff.qtpl:250 func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:255 +//line views/stuff.qtpl:250 qw422016.N().S(`

    `) -//line views/stuff.qtpl:258 +//line views/stuff.qtpl:253 qw422016.E().S(lc.Get("ui.list_heading")) -//line views/stuff.qtpl:258 +//line views/stuff.qtpl:253 qw422016.N().S(`

    `) -//line views/stuff.qtpl:259 +//line views/stuff.qtpl:254 qw422016.E().S(lc.GetPlural("ui.list_desc", hyphae.Count())) -//line views/stuff.qtpl:259 +//line views/stuff.qtpl:254 qw422016.N().S(`

      `) -//line views/stuff.qtpl:262 +//line views/stuff.qtpl:257 hyphaNames := make(chan string) sortedHypha := hyphae.PathographicSort(hyphaNames) for hypha := range hyphae.YieldExistingHyphae() { @@ -1032,252 +1015,252 @@ func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { } close(hyphaNames) -//line views/stuff.qtpl:268 +//line views/stuff.qtpl:263 qw422016.N().S(` `) -//line views/stuff.qtpl:269 +//line views/stuff.qtpl:264 for hyphaName := range sortedHypha { -//line views/stuff.qtpl:269 +//line views/stuff.qtpl:264 qw422016.N().S(` `) -//line views/stuff.qtpl:270 +//line views/stuff.qtpl:265 hypha := hyphae.ByName(hyphaName) -//line views/stuff.qtpl:270 +//line views/stuff.qtpl:265 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:272 +//line views/stuff.qtpl:267 qw422016.E().S(util.BeautifulName(hypha.Name)) -//line views/stuff.qtpl:272 +//line views/stuff.qtpl:267 qw422016.N().S(` `) -//line views/stuff.qtpl:273 +//line views/stuff.qtpl:268 if hypha.BinaryPath != "" { -//line views/stuff.qtpl:273 +//line views/stuff.qtpl:268 qw422016.N().S(` `) -//line views/stuff.qtpl:274 +//line views/stuff.qtpl:269 qw422016.E().S(filepath.Ext(hypha.BinaryPath)[1:]) -//line views/stuff.qtpl:274 +//line views/stuff.qtpl:269 qw422016.N().S(` `) -//line views/stuff.qtpl:275 +//line views/stuff.qtpl:270 } -//line views/stuff.qtpl:275 +//line views/stuff.qtpl:270 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:277 +//line views/stuff.qtpl:272 } -//line views/stuff.qtpl:277 +//line views/stuff.qtpl:272 qw422016.N().S(`
    `) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 } -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 func WriteHyphaListHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 StreamHyphaListHTML(qw422016, lc) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 } -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 func HyphaListHTML(lc *l18n.Localizer) string { -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 WriteHyphaListHTML(qb422016, lc) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 return qs422016 -//line views/stuff.qtpl:281 +//line views/stuff.qtpl:276 } -//line views/stuff.qtpl:283 +//line views/stuff.qtpl:278 func StreamAboutHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:283 +//line views/stuff.qtpl:278 qw422016.N().S(`

    `) -//line views/stuff.qtpl:287 +//line views/stuff.qtpl:282 qw422016.E().S(lc.Get("ui.about_title", &l18n.Replacements{"name": cfg.WikiName})) -//line views/stuff.qtpl:287 +//line views/stuff.qtpl:282 qw422016.N().S(`

    • `) -//line views/stuff.qtpl:289 +//line views/stuff.qtpl:284 qw422016.N().S(lc.Get("ui.about_version", &l18n.Replacements{"pre": "", "post": ""})) -//line views/stuff.qtpl:289 +//line views/stuff.qtpl:284 qw422016.N().S(` 1.7.0
    • `) -//line views/stuff.qtpl:290 +//line views/stuff.qtpl:285 if cfg.UseAuth { -//line views/stuff.qtpl:290 +//line views/stuff.qtpl:285 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:291 +//line views/stuff.qtpl:286 qw422016.E().S(lc.Get("ui.about_usercount")) -//line views/stuff.qtpl:291 +//line views/stuff.qtpl:286 qw422016.N().S(` `) -//line views/stuff.qtpl:291 +//line views/stuff.qtpl:286 qw422016.N().DUL(user.Count()) -//line views/stuff.qtpl:291 +//line views/stuff.qtpl:286 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:292 +//line views/stuff.qtpl:287 qw422016.E().S(lc.Get("ui.about_homepage")) -//line views/stuff.qtpl:292 +//line views/stuff.qtpl:287 qw422016.N().S(` `) -//line views/stuff.qtpl:292 +//line views/stuff.qtpl:287 qw422016.E().S(cfg.HomeHypha) -//line views/stuff.qtpl:292 +//line views/stuff.qtpl:287 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:293 +//line views/stuff.qtpl:288 qw422016.E().S(lc.Get("ui.about_admins")) -//line views/stuff.qtpl:293 +//line views/stuff.qtpl:288 qw422016.N().S(``) -//line views/stuff.qtpl:293 +//line views/stuff.qtpl:288 for i, username := range user.ListUsersWithGroup("admin") { -//line views/stuff.qtpl:294 +//line views/stuff.qtpl:289 if i > 0 { -//line views/stuff.qtpl:294 +//line views/stuff.qtpl:289 qw422016.N().S(` `) -//line views/stuff.qtpl:295 +//line views/stuff.qtpl:290 } -//line views/stuff.qtpl:295 +//line views/stuff.qtpl:290 qw422016.N().S(` `) -//line views/stuff.qtpl:296 +//line views/stuff.qtpl:291 qw422016.E().S(username) -//line views/stuff.qtpl:296 +//line views/stuff.qtpl:291 qw422016.N().S(``) -//line views/stuff.qtpl:296 +//line views/stuff.qtpl:291 } -//line views/stuff.qtpl:296 +//line views/stuff.qtpl:291 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:297 +//line views/stuff.qtpl:292 } else { -//line views/stuff.qtpl:297 +//line views/stuff.qtpl:292 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:298 +//line views/stuff.qtpl:293 qw422016.E().S(lc.Get("ui.about_noauth")) -//line views/stuff.qtpl:298 +//line views/stuff.qtpl:293 qw422016.N().S(`
    • `) -//line views/stuff.qtpl:299 +//line views/stuff.qtpl:294 } -//line views/stuff.qtpl:299 +//line views/stuff.qtpl:294 qw422016.N().S(`

    `) -//line views/stuff.qtpl:301 +//line views/stuff.qtpl:296 qw422016.N().S(lc.Get("ui.about_hyphae", &l18n.Replacements{"link": "/list"})) -//line views/stuff.qtpl:301 +//line views/stuff.qtpl:296 qw422016.N().S(`

    `) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 } -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 func WriteAboutHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) { -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 StreamAboutHTML(qw422016, lc) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 } -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 func AboutHTML(lc *l18n.Localizer) string { -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 WriteAboutHTML(qb422016, lc) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 return qs422016 -//line views/stuff.qtpl:305 +//line views/stuff.qtpl:300 } -//line views/stuff.qtpl:307 +//line views/stuff.qtpl:302 func StreamCommonScripts(qw422016 *qt422016.Writer) { -//line views/stuff.qtpl:307 +//line views/stuff.qtpl:302 qw422016.N().S(` `) -//line views/stuff.qtpl:308 +//line views/stuff.qtpl:303 for _, scriptPath := range cfg.CommonScripts { -//line views/stuff.qtpl:308 +//line views/stuff.qtpl:303 qw422016.N().S(` `) -//line views/stuff.qtpl:310 +//line views/stuff.qtpl:305 } -//line views/stuff.qtpl:310 +//line views/stuff.qtpl:305 qw422016.N().S(` `) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 } -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 func WriteCommonScripts(qq422016 qtio422016.Writer) { -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 qw422016 := qt422016.AcquireWriter(qq422016) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 StreamCommonScripts(qw422016) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 qt422016.ReleaseWriter(qw422016) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 } -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 func CommonScripts() string { -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 qb422016 := qt422016.AcquireByteBuffer() -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 WriteCommonScripts(qb422016) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 qs422016 := string(qb422016.B) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 qt422016.ReleaseByteBuffer(qb422016) -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 return qs422016 -//line views/stuff.qtpl:311 +//line views/stuff.qtpl:306 }