Views: Drop the *HTML suffix

This commit is contained in:
Timur Ismagilov
2022-03-21 00:24:40 +03:00
parent b4c4b3fbf0
commit eb88cbf23e
33 changed files with 300 additions and 300 deletions
+5 -5
View File
@@ -4,7 +4,7 @@
{% import "github.com/bouncepaw/mycorrhiza/user" %}
{% import "github.com/bouncepaw/mycorrhiza/util" %}
{% func AdminPanelHTML(lc *l18n.Localizer) %}
{% func AdminPanel(lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<h1>{%s lc.Get("admin.panel_title") %}</h1>
@@ -36,7 +36,7 @@
</div>
{% endfunc %}
{% func AdminUsersPanelHTML(userList []*user.User, lc *l18n.Localizer) %}
{% func AdminUsersPanel(userList []*user.User, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<h1>{%s lc.Get("admin.users_title") %}</h1>
@@ -82,7 +82,7 @@
</div>
{% endfunc %}
{% func AdminUserNewHTML(f util.FormData, lc *l18n.Localizer) %}
{% func AdminUserNew(f util.FormData, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width form-wrap">
<h1>{%s lc.Get("admin.newuser_title") %}</h1>
@@ -127,7 +127,7 @@
</div>
{% endfunc %}
{% func AdminUserEditHTML(u *user.User, f util.FormData, lc *l18n.Localizer) %}
{% func AdminUserEdit(u *user.User, f util.FormData, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width form-wrap">
<h1>
@@ -167,7 +167,7 @@
</div>
{% endfunc %}
{% func AdminUserDeleteHTML(u *user.User, f util.FormData, lc *l18n.Localizer) %}
{% func AdminUserDelete(u *user.User, f util.FormData, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width form-wrap">
<h1>{%s lc.Get("admin.user_delete_heading") %}</h1>
+25 -25
View File
@@ -33,7 +33,7 @@ var (
)
//line views/admin.qtpl:7
func StreamAdminPanelHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamAdminPanel(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/admin.qtpl:7
qw422016.N().S(`
<div class="layout">
@@ -106,22 +106,22 @@ func StreamAdminPanelHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/admin.qtpl:37
func WriteAdminPanelHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteAdminPanel(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/admin.qtpl:37
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/admin.qtpl:37
StreamAdminPanelHTML(qw422016, lc)
StreamAdminPanel(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 {
func AdminPanel(lc *l18n.Localizer) string {
//line views/admin.qtpl:37
qb422016 := qt422016.AcquireByteBuffer()
//line views/admin.qtpl:37
WriteAdminPanelHTML(qb422016, lc)
WriteAdminPanel(qb422016, lc)
//line views/admin.qtpl:37
qs422016 := string(qb422016.B)
//line views/admin.qtpl:37
@@ -132,7 +132,7 @@ func AdminPanelHTML(lc *l18n.Localizer) string {
}
//line views/admin.qtpl:39
func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User, lc *l18n.Localizer) {
func StreamAdminUsersPanel(qw422016 *qt422016.Writer, userList []*user.User, lc *l18n.Localizer) {
//line views/admin.qtpl:39
qw422016.N().S(`
<div class="layout">
@@ -263,22 +263,22 @@ func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User,
}
//line views/admin.qtpl:83
func WriteAdminUsersPanelHTML(qq422016 qtio422016.Writer, userList []*user.User, lc *l18n.Localizer) {
func WriteAdminUsersPanel(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)
StreamAdminUsersPanel(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 {
func AdminUsersPanel(userList []*user.User, lc *l18n.Localizer) string {
//line views/admin.qtpl:83
qb422016 := qt422016.AcquireByteBuffer()
//line views/admin.qtpl:83
WriteAdminUsersPanelHTML(qb422016, userList, lc)
WriteAdminUsersPanel(qb422016, userList, lc)
//line views/admin.qtpl:83
qs422016 := string(qb422016.B)
//line views/admin.qtpl:83
@@ -289,7 +289,7 @@ func AdminUsersPanelHTML(userList []*user.User, lc *l18n.Localizer) string {
}
//line views/admin.qtpl:85
func StreamAdminUserNewHTML(qw422016 *qt422016.Writer, f util.FormData, lc *l18n.Localizer) {
func StreamAdminUserNew(qw422016 *qt422016.Writer, f util.FormData, lc *l18n.Localizer) {
//line views/admin.qtpl:85
qw422016.N().S(`
<div class="layout">
@@ -427,22 +427,22 @@ func StreamAdminUserNewHTML(qw422016 *qt422016.Writer, f util.FormData, lc *l18n
}
//line views/admin.qtpl:128
func WriteAdminUserNewHTML(qq422016 qtio422016.Writer, f util.FormData, lc *l18n.Localizer) {
func WriteAdminUserNew(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)
StreamAdminUserNew(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 {
func AdminUserNew(f util.FormData, lc *l18n.Localizer) string {
//line views/admin.qtpl:128
qb422016 := qt422016.AcquireByteBuffer()
//line views/admin.qtpl:128
WriteAdminUserNewHTML(qb422016, f, lc)
WriteAdminUserNew(qb422016, f, lc)
//line views/admin.qtpl:128
qs422016 := string(qb422016.B)
//line views/admin.qtpl:128
@@ -453,7 +453,7 @@ func AdminUserNewHTML(f util.FormData, lc *l18n.Localizer) string {
}
//line views/admin.qtpl:130
func StreamAdminUserEditHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
func StreamAdminUserEdit(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
//line views/admin.qtpl:130
qw422016.N().S(`
<div class="layout">
@@ -586,22 +586,22 @@ func StreamAdminUserEditHTML(qw422016 *qt422016.Writer, u *user.User, f util.For
}
//line views/admin.qtpl:168
func WriteAdminUserEditHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
func WriteAdminUserEdit(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)
StreamAdminUserEdit(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 {
func AdminUserEdit(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)
WriteAdminUserEdit(qb422016, u, f, lc)
//line views/admin.qtpl:168
qs422016 := string(qb422016.B)
//line views/admin.qtpl:168
@@ -612,7 +612,7 @@ func AdminUserEditHTML(u *user.User, f util.FormData, lc *l18n.Localizer) string
}
//line views/admin.qtpl:170
func StreamAdminUserDeleteHTML(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
func StreamAdminUserDelete(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
//line views/admin.qtpl:170
qw422016.N().S(`
<div class="layout">
@@ -675,22 +675,22 @@ func StreamAdminUserDeleteHTML(qw422016 *qt422016.Writer, u *user.User, f util.F
}
//line views/admin.qtpl:190
func WriteAdminUserDeleteHTML(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
func WriteAdminUserDelete(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)
StreamAdminUserDelete(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 {
func AdminUserDelete(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)
WriteAdminUserDelete(qb422016, u, f, lc)
//line views/admin.qtpl:190
qs422016 := string(qb422016.B)
//line views/admin.qtpl:190
+9 -9
View File
@@ -2,7 +2,7 @@
{% import "github.com/bouncepaw/mycorrhiza/cfg" %}
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
{% func RegisterHTML(rq *http.Request) %}
{% func Register(rq *http.Request) %}
{% code
lc := l18n.FromRequest(rq)
%}
@@ -27,7 +27,7 @@
<a class="btn btn_weak" href="/{%s rq.URL.RawQuery %}">{%s lc.Get("ui.cancel") %}</a>
</fieldset>
</form>
{%= telegramWidgetHTML(lc) %}
{%= telegramWidget(lc) %}
{% elseif cfg.UseAuth %}
<p>{%s lc.Get("auth.noregister") %}</p>
<p><a href="/{%s rq.URL.RawQuery %}">← {%s lc.Get("auth.go_back") %}</a></p>
@@ -40,7 +40,7 @@
</div>
{% endfunc %}
{% func LoginHTML(lc *l18n.Localizer) %}
{% func Login(lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<section>
@@ -60,7 +60,7 @@
<a class="btn btn_weak" href="/">{%s lc.Get("ui.cancel") %}</a>
</fieldset>
</form>
{%= telegramWidgetHTML(lc) %}
{%= telegramWidget(lc) %}
{% else %}
<p>{%s lc.Get("auth.noauth") %}</p>
<p><a class="btn btn_weak" href="/">← {%s lc.Get("auth.go_home") %}</a></p>
@@ -71,14 +71,14 @@
{% endfunc %}
Telegram auth widget was requested by Yogurt. As you can see, we don't offer user administrators control over it. Of course we don't.
{% func telegramWidgetHTML(lc *l18n.Localizer) %}
{% func telegramWidget(lc *l18n.Localizer) %}
{% if cfg.TelegramEnabled %}
<p class="telegram-notice">{%s lc.Get("auth.telegram_tip") %}</p>
<script async src="https://telegram.org/js/telegram-widget.js?15" data-telegram-login="{%s cfg.TelegramBotName %}" data-size="medium" data-userpic="false" data-auth-url="{%s cfg.URL %}/telegram-login"></script>
{% endif %}
{% endfunc %}
{% func LoginErrorHTML(err string, lc *l18n.Localizer) %}
{% func LoginError(err string, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<section>
@@ -96,7 +96,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
</div>
{% endfunc %}
{% func LogoutHTML(can bool, lc *l18n.Localizer) %}
{% func Logout(can bool, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<section>
@@ -116,7 +116,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
</div>
{% endfunc %}
{% func LockHTML(lc *l18n.Localizer) %}
{% func Lock(lc *l18n.Localizer) %}
<!doctype html>
<html>
<head>
@@ -142,7 +142,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
<br>
<button class="btn" type="submit" value="Log in">{%s lc.Get("auth.login_button") %}</button>
</form>
{%= telegramWidgetHTML(lc) %}
{%= telegramWidget(lc) %}
</section>
</main>
</body>
+33 -33
View File
@@ -27,7 +27,7 @@ var (
)
//line views/auth.qtpl:5
func StreamRegisterHTML(qw422016 *qt422016.Writer, rq *http.Request) {
func StreamRegister(qw422016 *qt422016.Writer, rq *http.Request) {
//line views/auth.qtpl:5
qw422016.N().S(`
`)
@@ -99,7 +99,7 @@ func StreamRegisterHTML(qw422016 *qt422016.Writer, rq *http.Request) {
</form>
`)
//line views/auth.qtpl:30
streamtelegramWidgetHTML(qw422016, lc)
streamtelegramWidget(qw422016, lc)
//line views/auth.qtpl:30
qw422016.N().S(`
`)
@@ -153,22 +153,22 @@ func StreamRegisterHTML(qw422016 *qt422016.Writer, rq *http.Request) {
}
//line views/auth.qtpl:41
func WriteRegisterHTML(qq422016 qtio422016.Writer, rq *http.Request) {
func WriteRegister(qq422016 qtio422016.Writer, rq *http.Request) {
//line views/auth.qtpl:41
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:41
StreamRegisterHTML(qw422016, rq)
StreamRegister(qw422016, rq)
//line views/auth.qtpl:41
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:41
}
//line views/auth.qtpl:41
func RegisterHTML(rq *http.Request) string {
func Register(rq *http.Request) string {
//line views/auth.qtpl:41
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:41
WriteRegisterHTML(qb422016, rq)
WriteRegister(qb422016, rq)
//line views/auth.qtpl:41
qs422016 := string(qb422016.B)
//line views/auth.qtpl:41
@@ -179,7 +179,7 @@ func RegisterHTML(rq *http.Request) string {
}
//line views/auth.qtpl:43
func StreamLoginHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamLogin(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:43
qw422016.N().S(`
<div class="layout">
@@ -231,7 +231,7 @@ func StreamLoginHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
</form>
`)
//line views/auth.qtpl:63
streamtelegramWidgetHTML(qw422016, lc)
streamtelegramWidget(qw422016, lc)
//line views/auth.qtpl:63
qw422016.N().S(`
`)
@@ -262,22 +262,22 @@ func StreamLoginHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/auth.qtpl:71
func WriteLoginHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteLogin(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:71
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:71
StreamLoginHTML(qw422016, lc)
StreamLogin(qw422016, lc)
//line views/auth.qtpl:71
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:71
}
//line views/auth.qtpl:71
func LoginHTML(lc *l18n.Localizer) string {
func Login(lc *l18n.Localizer) string {
//line views/auth.qtpl:71
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:71
WriteLoginHTML(qb422016, lc)
WriteLogin(qb422016, lc)
//line views/auth.qtpl:71
qs422016 := string(qb422016.B)
//line views/auth.qtpl:71
@@ -290,7 +290,7 @@ func LoginHTML(lc *l18n.Localizer) string {
// Telegram auth widget was requested by Yogurt. As you can see, we don't offer user administrators control over it. Of course we don't.
//line views/auth.qtpl:74
func streamtelegramWidgetHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func streamtelegramWidget(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:74
qw422016.N().S(`
`)
@@ -322,22 +322,22 @@ func streamtelegramWidgetHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/auth.qtpl:79
func writetelegramWidgetHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func writetelegramWidget(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:79
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:79
streamtelegramWidgetHTML(qw422016, lc)
streamtelegramWidget(qw422016, lc)
//line views/auth.qtpl:79
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:79
}
//line views/auth.qtpl:79
func telegramWidgetHTML(lc *l18n.Localizer) string {
func telegramWidget(lc *l18n.Localizer) string {
//line views/auth.qtpl:79
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:79
writetelegramWidgetHTML(qb422016, lc)
writetelegramWidget(qb422016, lc)
//line views/auth.qtpl:79
qs422016 := string(qb422016.B)
//line views/auth.qtpl:79
@@ -348,7 +348,7 @@ func telegramWidgetHTML(lc *l18n.Localizer) string {
}
//line views/auth.qtpl:81
func StreamLoginErrorHTML(qw422016 *qt422016.Writer, err string, lc *l18n.Localizer) {
func StreamLoginError(qw422016 *qt422016.Writer, err string, lc *l18n.Localizer) {
//line views/auth.qtpl:81
qw422016.N().S(`
<div class="layout">
@@ -404,22 +404,22 @@ func StreamLoginErrorHTML(qw422016 *qt422016.Writer, err string, lc *l18n.Locali
}
//line views/auth.qtpl:97
func WriteLoginErrorHTML(qq422016 qtio422016.Writer, err string, lc *l18n.Localizer) {
func WriteLoginError(qq422016 qtio422016.Writer, err string, lc *l18n.Localizer) {
//line views/auth.qtpl:97
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:97
StreamLoginErrorHTML(qw422016, err, lc)
StreamLoginError(qw422016, err, lc)
//line views/auth.qtpl:97
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:97
}
//line views/auth.qtpl:97
func LoginErrorHTML(err string, lc *l18n.Localizer) string {
func LoginError(err string, lc *l18n.Localizer) string {
//line views/auth.qtpl:97
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:97
WriteLoginErrorHTML(qb422016, err, lc)
WriteLoginError(qb422016, err, lc)
//line views/auth.qtpl:97
qs422016 := string(qb422016.B)
//line views/auth.qtpl:97
@@ -430,7 +430,7 @@ func LoginErrorHTML(err string, lc *l18n.Localizer) string {
}
//line views/auth.qtpl:99
func StreamLogoutHTML(qw422016 *qt422016.Writer, can bool, lc *l18n.Localizer) {
func StreamLogout(qw422016 *qt422016.Writer, can bool, lc *l18n.Localizer) {
//line views/auth.qtpl:99
qw422016.N().S(`
<div class="layout">
@@ -491,22 +491,22 @@ func StreamLogoutHTML(qw422016 *qt422016.Writer, can bool, lc *l18n.Localizer) {
}
//line views/auth.qtpl:117
func WriteLogoutHTML(qq422016 qtio422016.Writer, can bool, lc *l18n.Localizer) {
func WriteLogout(qq422016 qtio422016.Writer, can bool, lc *l18n.Localizer) {
//line views/auth.qtpl:117
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:117
StreamLogoutHTML(qw422016, can, lc)
StreamLogout(qw422016, can, lc)
//line views/auth.qtpl:117
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:117
}
//line views/auth.qtpl:117
func LogoutHTML(can bool, lc *l18n.Localizer) string {
func Logout(can bool, lc *l18n.Localizer) string {
//line views/auth.qtpl:117
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:117
WriteLogoutHTML(qb422016, can, lc)
WriteLogout(qb422016, can, lc)
//line views/auth.qtpl:117
qs422016 := string(qb422016.B)
//line views/auth.qtpl:117
@@ -517,7 +517,7 @@ func LogoutHTML(can bool, lc *l18n.Localizer) string {
}
//line views/auth.qtpl:119
func StreamLockHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamLock(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:119
qw422016.N().S(`
<!doctype html>
@@ -567,7 +567,7 @@ func StreamLockHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
</form>
`)
//line views/auth.qtpl:145
streamtelegramWidgetHTML(qw422016, lc)
streamtelegramWidget(qw422016, lc)
//line views/auth.qtpl:145
qw422016.N().S(`
</section>
@@ -579,22 +579,22 @@ func StreamLockHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/auth.qtpl:150
func WriteLockHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteLock(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/auth.qtpl:150
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:150
StreamLockHTML(qw422016, lc)
StreamLock(qw422016, lc)
//line views/auth.qtpl:150
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:150
}
//line views/auth.qtpl:150
func LockHTML(lc *l18n.Localizer) string {
func Lock(lc *l18n.Localizer) string {
//line views/auth.qtpl:150
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:150
WriteLockHTML(qb422016, lc)
WriteLock(qb422016, lc)
//line views/auth.qtpl:150
qs422016 := string(qb422016.B)
//line views/auth.qtpl:150
+5 -5
View File
@@ -34,7 +34,7 @@ func init() {
ParseFS(fs, "*"))
}
func categoryCardHTML(hyphaName string) string {
func categoryCard(hyphaName string) string {
var buf strings.Builder
err := categoryT.ExecuteTemplate(&buf, "category card", struct {
HyphaName string
@@ -49,7 +49,7 @@ func categoryCardHTML(hyphaName string) string {
return buf.String()
}
func CategoryPageHTML(meta Meta, catName string) {
func CategoryPage(meta Meta, catName string) {
var buf strings.Builder
var t, _ = categoryT.Clone()
if meta.Lc.Locale == "ru" {
@@ -65,7 +65,7 @@ func CategoryPageHTML(meta Meta, catName string) {
if err != nil {
log.Println(err)
}
_, err = io.WriteString(meta.W, BaseHTML(
_, err = io.WriteString(meta.W, Base(
"Category "+util.BeautifulName(catName),
buf.String(),
meta.Lc,
@@ -76,7 +76,7 @@ func CategoryPageHTML(meta Meta, catName string) {
}
}
func CategoryListHTML(meta Meta) {
func CategoryList(meta Meta) {
var buf strings.Builder
err := categoryT.ExecuteTemplate(&buf, "category list", struct {
Categories []string
@@ -86,7 +86,7 @@ func CategoryListHTML(meta Meta) {
if err != nil {
log.Println(err)
}
_, err = io.WriteString(meta.W, BaseHTML(
_, err = io.WriteString(meta.W, Base(
"Category list",
buf.String(),
meta.Lc,
+1 -1
View File
@@ -79,7 +79,7 @@ func helpTopicsLocalizedTopic(lang string) func(string) string {
}
}
func helpTopicsHTML(lang string, lc *l18n.Localizer) string {
func helpTopics(lang string, lc *l18n.Localizer) string {
temp, err := template.
New("help topics").
Funcs(template.FuncMap{
+5 -5
View File
@@ -9,7 +9,7 @@
{% import "github.com/bouncepaw/mycorrhiza/history" %}
{% func PrimitiveDiffHTML(rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) %}
{% func PrimitiveDiff(rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) %}
{% code
lc := l18n.FromRequest(rq)
text, err := history.PrimitiveDiffAtRevision(h.TextFilePath(), hash)
@@ -27,7 +27,7 @@ if err != nil {
</div>
{% endfunc %}
{% func RecentChangesHTML(n int, lc *l18n.Localizer) %}
{% func RecentChanges(n int, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width recent-changes">
<h1>{%s lc.Get("ui.recent_heading") %}</h1>
@@ -77,7 +77,7 @@ if err != nil {
<div class="recent-changes__entry" role="article"
aria-setsize="{%d n %}" aria-posinset="{%d i %}">
{%s= recentChangesEntry(entry) %}
{%s= recentChanges(entry) %}
</div>
{% endfor %}
@@ -87,7 +87,7 @@ if err != nil {
</div>
{% endfunc %}
{% func recentChangesEntry(rev history.Revision) %}
{% func recentChanges(rev history.Revision) %}
<div>
<time class="recent-changes__entry__time">
{%s rev.Time.UTC().Format("15:04 UTC") %}
@@ -110,7 +110,7 @@ if err != nil {
</div>
{% endfunc %}
{% func HistoryHTML(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) %}
{% func History(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<article class="history">
+21 -21
View File
@@ -42,7 +42,7 @@ var (
)
//line views/history.qtpl:12
func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) {
func StreamPrimitiveDiff(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) {
//line views/history.qtpl:12
qw422016.N().S(`
`)
@@ -76,22 +76,22 @@ func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h hyph
}
//line views/history.qtpl:28
func WritePrimitiveDiffHTML(qq422016 qtio422016.Writer, rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) {
func WritePrimitiveDiff(qq422016 qtio422016.Writer, rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) {
//line views/history.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/history.qtpl:28
StreamPrimitiveDiffHTML(qw422016, rq, h, u, hash)
StreamPrimitiveDiff(qw422016, rq, h, u, hash)
//line views/history.qtpl:28
qt422016.ReleaseWriter(qw422016)
//line views/history.qtpl:28
}
//line views/history.qtpl:28
func PrimitiveDiffHTML(rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) string {
func PrimitiveDiff(rq *http.Request, h hyphae.ExistingHypha, u *user.User, hash string) string {
//line views/history.qtpl:28
qb422016 := qt422016.AcquireByteBuffer()
//line views/history.qtpl:28
WritePrimitiveDiffHTML(qb422016, rq, h, u, hash)
WritePrimitiveDiff(qb422016, rq, h, u, hash)
//line views/history.qtpl:28
qs422016 := string(qb422016.B)
//line views/history.qtpl:28
@@ -102,7 +102,7 @@ func PrimitiveDiffHTML(rq *http.Request, h hyphae.ExistingHypha, u *user.User, h
}
//line views/history.qtpl:30
func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int, lc *l18n.Localizer) {
func StreamRecentChanges(qw422016 *qt422016.Writer, n int, lc *l18n.Localizer) {
//line views/history.qtpl:30
qw422016.N().S(`
<div class="layout">
@@ -258,7 +258,7 @@ func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int, lc *l18n.Localize
qw422016.N().S(`">
`)
//line views/history.qtpl:80
qw422016.N().S(recentChangesEntry(entry))
qw422016.N().S(recentChanges(entry))
//line views/history.qtpl:80
qw422016.N().S(`
</div>
@@ -281,22 +281,22 @@ func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int, lc *l18n.Localize
}
//line views/history.qtpl:88
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, n int, lc *l18n.Localizer) {
func WriteRecentChanges(qq422016 qtio422016.Writer, n int, lc *l18n.Localizer) {
//line views/history.qtpl:88
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/history.qtpl:88
StreamRecentChangesHTML(qw422016, n, lc)
StreamRecentChanges(qw422016, n, lc)
//line views/history.qtpl:88
qt422016.ReleaseWriter(qw422016)
//line views/history.qtpl:88
}
//line views/history.qtpl:88
func RecentChangesHTML(n int, lc *l18n.Localizer) string {
func RecentChanges(n int, lc *l18n.Localizer) string {
//line views/history.qtpl:88
qb422016 := qt422016.AcquireByteBuffer()
//line views/history.qtpl:88
WriteRecentChangesHTML(qb422016, n, lc)
WriteRecentChanges(qb422016, n, lc)
//line views/history.qtpl:88
qs422016 := string(qb422016.B)
//line views/history.qtpl:88
@@ -307,7 +307,7 @@ func RecentChangesHTML(n int, lc *l18n.Localizer) string {
}
//line views/history.qtpl:90
func streamrecentChangesEntry(qw422016 *qt422016.Writer, rev history.Revision) {
func streamrecentChanges(qw422016 *qt422016.Writer, rev history.Revision) {
//line views/history.qtpl:90
qw422016.N().S(`
<div>
@@ -371,22 +371,22 @@ func streamrecentChangesEntry(qw422016 *qt422016.Writer, rev history.Revision) {
}
//line views/history.qtpl:111
func writerecentChangesEntry(qq422016 qtio422016.Writer, rev history.Revision) {
func writerecentChanges(qq422016 qtio422016.Writer, rev history.Revision) {
//line views/history.qtpl:111
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/history.qtpl:111
streamrecentChangesEntry(qw422016, rev)
streamrecentChanges(qw422016, rev)
//line views/history.qtpl:111
qt422016.ReleaseWriter(qw422016)
//line views/history.qtpl:111
}
//line views/history.qtpl:111
func recentChangesEntry(rev history.Revision) string {
func recentChanges(rev history.Revision) string {
//line views/history.qtpl:111
qb422016 := qt422016.AcquireByteBuffer()
//line views/history.qtpl:111
writerecentChangesEntry(qb422016, rev)
writerecentChanges(qb422016, rev)
//line views/history.qtpl:111
qs422016 := string(qb422016.B)
//line views/history.qtpl:111
@@ -397,7 +397,7 @@ func recentChangesEntry(rev history.Revision) string {
}
//line views/history.qtpl:113
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
func StreamHistory(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
//line views/history.qtpl:113
qw422016.N().S(`
<div class="layout">
@@ -421,22 +421,22 @@ func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, l
}
//line views/history.qtpl:122
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
func WriteHistory(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
//line views/history.qtpl:122
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/history.qtpl:122
StreamHistoryHTML(qw422016, rq, hyphaName, list, lc)
StreamHistory(qw422016, rq, hyphaName, list, lc)
//line views/history.qtpl:122
qt422016.ReleaseWriter(qw422016)
//line views/history.qtpl:122
}
//line views/history.qtpl:122
func HistoryHTML(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) string {
func History(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) string {
//line views/history.qtpl:122
qb422016 := qt422016.AcquireByteBuffer()
//line views/history.qtpl:122
WriteHistoryHTML(qb422016, rq, hyphaName, list, lc)
WriteHistory(qb422016, rq, hyphaName, list, lc)
//line views/history.qtpl:122
qs422016 := string(qb422016.B)
//line views/history.qtpl:122
+3 -3
View File
@@ -47,7 +47,7 @@
</section>
{% endfunc %}
{% func NaviTitleHTML(h hyphae.Hypha) %}
{% func NaviTitle(h hyphae.Hypha) %}
{% code
var (
prevAcc = "/hypha/"
@@ -75,9 +75,9 @@
</h1>
{% endfunc %}
{% func MediaHTMLRaw(h *hyphae.MediaHypha) %}{%= MediaHTML(h, l18n.New("en", "en")) %}{% endfunc %}
{% func MediaRaw(h *hyphae.MediaHypha) %}{%= Media(h, l18n.New("en", "en")) %}{% endfunc %}
{% func MediaHTML(h *hyphae.MediaHypha, lc *l18n.Localizer) %}
{% func Media(h *hyphae.MediaHypha, lc *l18n.Localizer) %}
{% switch filepath.Ext(h.MediaFilePath()) %}
{% case ".jpg", ".gif", ".png", ".webp", ".svg", ".ico" %}
+16 -16
View File
@@ -256,7 +256,7 @@ func nonExistentHyphaNotice(h hyphae.Hypha, u *user.User, lc *l18n.Localizer) st
}
//line views/hypha.qtpl:50
func StreamNaviTitleHTML(qw422016 *qt422016.Writer, h hyphae.Hypha) {
func StreamNaviTitle(qw422016 *qt422016.Writer, h hyphae.Hypha) {
//line views/hypha.qtpl:50
qw422016.N().S(`
`)
@@ -323,22 +323,22 @@ func StreamNaviTitleHTML(qw422016 *qt422016.Writer, h hyphae.Hypha) {
}
//line views/hypha.qtpl:76
func WriteNaviTitleHTML(qq422016 qtio422016.Writer, h hyphae.Hypha) {
func WriteNaviTitle(qq422016 qtio422016.Writer, h hyphae.Hypha) {
//line views/hypha.qtpl:76
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/hypha.qtpl:76
StreamNaviTitleHTML(qw422016, h)
StreamNaviTitle(qw422016, h)
//line views/hypha.qtpl:76
qt422016.ReleaseWriter(qw422016)
//line views/hypha.qtpl:76
}
//line views/hypha.qtpl:76
func NaviTitleHTML(h hyphae.Hypha) string {
func NaviTitle(h hyphae.Hypha) string {
//line views/hypha.qtpl:76
qb422016 := qt422016.AcquireByteBuffer()
//line views/hypha.qtpl:76
WriteNaviTitleHTML(qb422016, h)
WriteNaviTitle(qb422016, h)
//line views/hypha.qtpl:76
qs422016 := string(qb422016.B)
//line views/hypha.qtpl:76
@@ -349,29 +349,29 @@ func NaviTitleHTML(h hyphae.Hypha) string {
}
//line views/hypha.qtpl:78
func StreamMediaHTMLRaw(qw422016 *qt422016.Writer, h *hyphae.MediaHypha) {
func StreamMediaRaw(qw422016 *qt422016.Writer, h *hyphae.MediaHypha) {
//line views/hypha.qtpl:78
StreamMediaHTML(qw422016, h, l18n.New("en", "en"))
StreamMedia(qw422016, h, l18n.New("en", "en"))
//line views/hypha.qtpl:78
}
//line views/hypha.qtpl:78
func WriteMediaHTMLRaw(qq422016 qtio422016.Writer, h *hyphae.MediaHypha) {
func WriteMediaRaw(qq422016 qtio422016.Writer, h *hyphae.MediaHypha) {
//line views/hypha.qtpl:78
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/hypha.qtpl:78
StreamMediaHTMLRaw(qw422016, h)
StreamMediaRaw(qw422016, h)
//line views/hypha.qtpl:78
qt422016.ReleaseWriter(qw422016)
//line views/hypha.qtpl:78
}
//line views/hypha.qtpl:78
func MediaHTMLRaw(h *hyphae.MediaHypha) string {
func MediaRaw(h *hyphae.MediaHypha) string {
//line views/hypha.qtpl:78
qb422016 := qt422016.AcquireByteBuffer()
//line views/hypha.qtpl:78
WriteMediaHTMLRaw(qb422016, h)
WriteMediaRaw(qb422016, h)
//line views/hypha.qtpl:78
qs422016 := string(qb422016.B)
//line views/hypha.qtpl:78
@@ -382,7 +382,7 @@ func MediaHTMLRaw(h *hyphae.MediaHypha) string {
}
//line views/hypha.qtpl:80
func StreamMediaHTML(qw422016 *qt422016.Writer, h *hyphae.MediaHypha, lc *l18n.Localizer) {
func StreamMedia(qw422016 *qt422016.Writer, h *hyphae.MediaHypha, lc *l18n.Localizer) {
//line views/hypha.qtpl:80
qw422016.N().S(`
`)
@@ -486,22 +486,22 @@ func StreamMediaHTML(qw422016 *qt422016.Writer, h *hyphae.MediaHypha, lc *l18n.L
}
//line views/hypha.qtpl:109
func WriteMediaHTML(qq422016 qtio422016.Writer, h *hyphae.MediaHypha, lc *l18n.Localizer) {
func WriteMedia(qq422016 qtio422016.Writer, h *hyphae.MediaHypha, lc *l18n.Localizer) {
//line views/hypha.qtpl:109
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/hypha.qtpl:109
StreamMediaHTML(qw422016, h, lc)
StreamMedia(qw422016, h, lc)
//line views/hypha.qtpl:109
qt422016.ReleaseWriter(qw422016)
//line views/hypha.qtpl:109
}
//line views/hypha.qtpl:109
func MediaHTML(h *hyphae.MediaHypha, lc *l18n.Localizer) string {
func Media(h *hyphae.MediaHypha, lc *l18n.Localizer) string {
//line views/hypha.qtpl:109
qb422016 := qt422016.AcquireByteBuffer()
//line views/hypha.qtpl:109
WriteMediaHTML(qb422016, h, lc)
WriteMedia(qb422016, h, lc)
//line views/hypha.qtpl:109
qs422016 := string(qb422016.B)
//line views/hypha.qtpl:109
+3 -3
View File
@@ -2,7 +2,7 @@
{% import "net/http" %}
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
{% func DeleteAskHTML(rq *http.Request, hyphaName string) %}
{% func DeleteAsk(rq *http.Request, hyphaName string) %}
{% code
lc := l18n.FromRequest(rq)
%}
@@ -16,7 +16,7 @@
{%= modalEnd(hyphaName, true, lc) %}
{% endfunc %}
{% func RemoveMediaAskHTML(rq *http.Request, hyphaName string) %}
{% func RemoveMediaAsk(rq *http.Request, hyphaName string) %}
{% code
lc := l18n.FromRequest(rq)
%}
@@ -31,7 +31,7 @@
bloody hell !!
{% func RenameAskHTML(rq *http.Request, hyphaName string) %}
{% func RenameAsk(rq *http.Request, hyphaName string) %}
{% code
lc := l18n.FromRequest(rq)
%}
+15 -15
View File
@@ -27,7 +27,7 @@ var (
)
//line views/modal.qtpl:5
func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
func StreamDeleteAsk(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:5
qw422016.N().S(`
`)
@@ -65,22 +65,22 @@ func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName
}
//line views/modal.qtpl:17
func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
func WriteDeleteAsk(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:17
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/modal.qtpl:17
StreamDeleteAskHTML(qw422016, rq, hyphaName)
StreamDeleteAsk(qw422016, rq, hyphaName)
//line views/modal.qtpl:17
qt422016.ReleaseWriter(qw422016)
//line views/modal.qtpl:17
}
//line views/modal.qtpl:17
func DeleteAskHTML(rq *http.Request, hyphaName string) string {
func DeleteAsk(rq *http.Request, hyphaName string) string {
//line views/modal.qtpl:17
qb422016 := qt422016.AcquireByteBuffer()
//line views/modal.qtpl:17
WriteDeleteAskHTML(qb422016, rq, hyphaName)
WriteDeleteAsk(qb422016, rq, hyphaName)
//line views/modal.qtpl:17
qs422016 := string(qb422016.B)
//line views/modal.qtpl:17
@@ -91,7 +91,7 @@ func DeleteAskHTML(rq *http.Request, hyphaName string) string {
}
//line views/modal.qtpl:19
func StreamRemoveMediaAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
func StreamRemoveMediaAsk(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:19
qw422016.N().S(`
`)
@@ -124,22 +124,22 @@ func StreamRemoveMediaAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hypha
}
//line views/modal.qtpl:30
func WriteRemoveMediaAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
func WriteRemoveMediaAsk(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:30
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/modal.qtpl:30
StreamRemoveMediaAskHTML(qw422016, rq, hyphaName)
StreamRemoveMediaAsk(qw422016, rq, hyphaName)
//line views/modal.qtpl:30
qt422016.ReleaseWriter(qw422016)
//line views/modal.qtpl:30
}
//line views/modal.qtpl:30
func RemoveMediaAskHTML(rq *http.Request, hyphaName string) string {
func RemoveMediaAsk(rq *http.Request, hyphaName string) string {
//line views/modal.qtpl:30
qb422016 := qt422016.AcquireByteBuffer()
//line views/modal.qtpl:30
WriteRemoveMediaAskHTML(qb422016, rq, hyphaName)
WriteRemoveMediaAsk(qb422016, rq, hyphaName)
//line views/modal.qtpl:30
qs422016 := string(qb422016.B)
//line views/modal.qtpl:30
@@ -153,7 +153,7 @@ func RemoveMediaAskHTML(rq *http.Request, hyphaName string) string {
//
//line views/modal.qtpl:34
func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
func StreamRenameAsk(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:34
qw422016.N().S(`
`)
@@ -204,22 +204,22 @@ func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName
}
//line views/modal.qtpl:51
func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
func WriteRenameAsk(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
//line views/modal.qtpl:51
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/modal.qtpl:51
StreamRenameAskHTML(qw422016, rq, hyphaName)
StreamRenameAsk(qw422016, rq, hyphaName)
//line views/modal.qtpl:51
qt422016.ReleaseWriter(qw422016)
//line views/modal.qtpl:51
}
//line views/modal.qtpl:51
func RenameAskHTML(rq *http.Request, hyphaName string) string {
func RenameAsk(rq *http.Request, hyphaName string) string {
//line views/modal.qtpl:51
qb422016 := qt422016.AcquireByteBuffer()
//line views/modal.qtpl:51
WriteRenameAskHTML(qb422016, rq, hyphaName)
WriteRenameAsk(qb422016, rq, hyphaName)
//line views/modal.qtpl:51
qs422016 := string(qb422016.B)
//line views/modal.qtpl:51
+2 -2
View File
@@ -65,7 +65,7 @@
<script src="/static/toolbar.js"></script>
{% endfunc %}
{% func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) %}
{% func Editor(rq *http.Request, hyphaName, textAreaFill, warning string) %}
{% code
lc := l18n.FromRequest(rq)
%}
@@ -90,7 +90,7 @@
{%= editScripts() %}
{% endfunc %}
{% func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) %}
{% func Preview(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) %}
{% code
lc := l18n.FromRequest(rq)
%}
+10 -10
View File
@@ -180,7 +180,7 @@ func Toolbar(u *user.User, lc *l18n.Localizer) string {
}
//line views/mutators.qtpl:68
func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
func StreamEditor(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line views/mutators.qtpl:68
qw422016.N().S(`
`)
@@ -257,22 +257,22 @@ func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, text
}
//line views/mutators.qtpl:91
func WriteEditHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
func WriteEditor(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line views/mutators.qtpl:91
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:91
StreamEditHTML(qw422016, rq, hyphaName, textAreaFill, warning)
StreamEditor(qw422016, rq, hyphaName, textAreaFill, warning)
//line views/mutators.qtpl:91
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:91
}
//line views/mutators.qtpl:91
func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) string {
func Editor(rq *http.Request, hyphaName, textAreaFill, warning string) string {
//line views/mutators.qtpl:91
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:91
WriteEditHTML(qb422016, rq, hyphaName, textAreaFill, warning)
WriteEditor(qb422016, rq, hyphaName, textAreaFill, warning)
//line views/mutators.qtpl:91
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:91
@@ -283,7 +283,7 @@ func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) string
}
//line views/mutators.qtpl:93
func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
func StreamPreview(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
//line views/mutators.qtpl:93
qw422016.N().S(`
`)
@@ -374,22 +374,22 @@ func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, t
}
//line views/mutators.qtpl:118
func WritePreviewHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
func WritePreview(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
//line views/mutators.qtpl:118
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:118
StreamPreviewHTML(qw422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
StreamPreview(qw422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
//line views/mutators.qtpl:118
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:118
}
//line views/mutators.qtpl:118
func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) string {
func Preview(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) string {
//line views/mutators.qtpl:118
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:118
WritePreviewHTML(qb422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
WritePreview(qb422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
//line views/mutators.qtpl:118
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:118
+2 -2
View File
@@ -32,7 +32,7 @@
</nav>
{% endfunc %}
{% func siblingHyphaeHTML(siblings string, lc *l18n.Localizer) %}
{% func siblingHyphae(siblings string, lc *l18n.Localizer) %}
{% if cfg.UseSiblingHyphaeSidebar %}
<aside class="sibling-hyphae layout-card">
<h2 class="sibling-hyphae__title layout-card__title">{%s lc.Get("ui.sibling_hyphae") %}</h2>
@@ -41,7 +41,7 @@
{% endif %}
{% endfunc %}
{% func SubhyphaeHTML(subhyphae string, lc *l18n.Localizer) %}
{% func Subhyphae(subhyphae string, lc *l18n.Localizer) %}
{% if strings.TrimSpace(subhyphae) != "" %}
<section class="subhyphae">
<h2 class="subhyphae__title">{%s lc.Get("ui.subhyphae") %}</h2>
+10 -10
View File
@@ -178,7 +178,7 @@ func hyphaInfo(rq *http.Request, h hyphae.Hypha) string {
}
//line views/nav.qtpl:35
func streamsiblingHyphaeHTML(qw422016 *qt422016.Writer, siblings string, lc *l18n.Localizer) {
func streamsiblingHyphae(qw422016 *qt422016.Writer, siblings string, lc *l18n.Localizer) {
//line views/nav.qtpl:35
qw422016.N().S(`
`)
@@ -208,22 +208,22 @@ func streamsiblingHyphaeHTML(qw422016 *qt422016.Writer, siblings string, lc *l18
}
//line views/nav.qtpl:42
func writesiblingHyphaeHTML(qq422016 qtio422016.Writer, siblings string, lc *l18n.Localizer) {
func writesiblingHyphae(qq422016 qtio422016.Writer, siblings string, lc *l18n.Localizer) {
//line views/nav.qtpl:42
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:42
streamsiblingHyphaeHTML(qw422016, siblings, lc)
streamsiblingHyphae(qw422016, siblings, lc)
//line views/nav.qtpl:42
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:42
}
//line views/nav.qtpl:42
func siblingHyphaeHTML(siblings string, lc *l18n.Localizer) string {
func siblingHyphae(siblings string, lc *l18n.Localizer) string {
//line views/nav.qtpl:42
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:42
writesiblingHyphaeHTML(qb422016, siblings, lc)
writesiblingHyphae(qb422016, siblings, lc)
//line views/nav.qtpl:42
qs422016 := string(qb422016.B)
//line views/nav.qtpl:42
@@ -234,7 +234,7 @@ func siblingHyphaeHTML(siblings string, lc *l18n.Localizer) string {
}
//line views/nav.qtpl:44
func StreamSubhyphaeHTML(qw422016 *qt422016.Writer, subhyphae string, lc *l18n.Localizer) {
func StreamSubhyphae(qw422016 *qt422016.Writer, subhyphae string, lc *l18n.Localizer) {
//line views/nav.qtpl:44
qw422016.N().S(`
`)
@@ -268,22 +268,22 @@ func StreamSubhyphaeHTML(qw422016 *qt422016.Writer, subhyphae string, lc *l18n.L
}
//line views/nav.qtpl:55
func WriteSubhyphaeHTML(qq422016 qtio422016.Writer, subhyphae string, lc *l18n.Localizer) {
func WriteSubhyphae(qq422016 qtio422016.Writer, subhyphae string, lc *l18n.Localizer) {
//line views/nav.qtpl:55
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:55
StreamSubhyphaeHTML(qw422016, subhyphae, lc)
StreamSubhyphae(qw422016, subhyphae, lc)
//line views/nav.qtpl:55
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:55
}
//line views/nav.qtpl:55
func SubhyphaeHTML(subhyphae string, lc *l18n.Localizer) string {
func Subhyphae(subhyphae string, lc *l18n.Localizer) string {
//line views/nav.qtpl:55
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:55
WriteSubhyphaeHTML(qb422016, subhyphae, lc)
WriteSubhyphae(qb422016, subhyphae, lc)
//line views/nav.qtpl:55
qs422016 := string(qb422016.B)
//line views/nav.qtpl:55
+8 -8
View File
@@ -11,7 +11,7 @@
{% import "github.com/bouncepaw/mycorrhiza/user" %}
{% import "github.com/bouncepaw/mycorrhiza/util" %}
{% func MediaMenuHTML(rq *http.Request, h hyphae.Hypha, u *user.User) %}
{% func MediaMenu(rq *http.Request, h hyphae.Hypha, u *user.User) %}
{% code
lc := l18n.FromRequest(rq)
%}
@@ -85,7 +85,7 @@
If `contents` == "", a helpful message is shown instead.
If you rename .prevnext, change the docs too.
{% func HyphaHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) %}
{% func Hypha(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) %}
{% code
siblings, subhyphae, prevHyphaName, nextHyphaName := tree.Tree(h.CanonicalName())
u := user.FromRequest(rq)
@@ -110,7 +110,7 @@ If you rename .prevnext, change the docs too.
{% endif %}
{% endif %}
{%s= NaviTitleHTML(h) %}
{%s= NaviTitle(h) %}
{% switch h.(type) %}
{% case *hyphae.EmptyHypha %}
{%= nonExistentHyphaNotice(h, u, lc) %}
@@ -126,23 +126,23 @@ If you rename .prevnext, change the docs too.
<a class="prevnext__el prevnext__next" href="/hypha/{%s nextHyphaName %}" rel="next">{%s util.BeautifulName(path.Base(nextHyphaName)) %} →</a>
{% endif %}
</section>
{%= SubhyphaeHTML(subhyphae, lc) %}
{%= Subhyphae(subhyphae, lc) %}
<section id="hypha-bottom">
{%= hyphaInfo(rq, h) %}
</section>
</main>
{%s= categoryCardHTML(h.CanonicalName()) %}
{%= siblingHyphaeHTML(siblings, lc) %}
{%s= categoryCard(h.CanonicalName()) %}
{%= siblingHyphae(siblings, lc) %}
</div>
{%= viewScripts() %}
{% endfunc %}
{% func RevisionHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) %}
{% func Revision(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) %}
<div class="layout">
<main class="main-width">
<section>
<p>{%s lc.Get("ui.revision_warning") %} <a href="/rev-text/{%s revHash %}/{%s h.CanonicalName() %}">{%s lc.Get("ui.revision_link") %}</a></p>
{%s= NaviTitleHTML(h) %}
{%s= NaviTitle(h) %}
{%s= contents %}
</section>
</main>
+20 -20
View File
@@ -51,7 +51,7 @@ var (
)
//line views/readers.qtpl:14
func StreamMediaMenuHTML(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.Hypha, u *user.User) {
func StreamMediaMenu(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.Hypha, u *user.User) {
//line views/readers.qtpl:14
qw422016.N().S(`
`)
@@ -281,22 +281,22 @@ func StreamMediaMenuHTML(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.H
}
//line views/readers.qtpl:83
func WriteMediaMenuHTML(qq422016 qtio422016.Writer, rq *http.Request, h hyphae.Hypha, u *user.User) {
func WriteMediaMenu(qq422016 qtio422016.Writer, rq *http.Request, h hyphae.Hypha, u *user.User) {
//line views/readers.qtpl:83
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/readers.qtpl:83
StreamMediaMenuHTML(qw422016, rq, h, u)
StreamMediaMenu(qw422016, rq, h, u)
//line views/readers.qtpl:83
qt422016.ReleaseWriter(qw422016)
//line views/readers.qtpl:83
}
//line views/readers.qtpl:83
func MediaMenuHTML(rq *http.Request, h hyphae.Hypha, u *user.User) string {
func MediaMenu(rq *http.Request, h hyphae.Hypha, u *user.User) string {
//line views/readers.qtpl:83
qb422016 := qt422016.AcquireByteBuffer()
//line views/readers.qtpl:83
WriteMediaMenuHTML(qb422016, rq, h, u)
WriteMediaMenu(qb422016, rq, h, u)
//line views/readers.qtpl:83
qs422016 := string(qb422016.B)
//line views/readers.qtpl:83
@@ -311,7 +311,7 @@ func MediaMenuHTML(rq *http.Request, h hyphae.Hypha, u *user.User) string {
// If you rename .prevnext, change the docs too.
//line views/readers.qtpl:88
func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) {
func StreamHypha(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) {
//line views/readers.qtpl:88
qw422016.N().S(`
`)
@@ -383,7 +383,7 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Local
`)
//line views/readers.qtpl:113
qw422016.N().S(NaviTitleHTML(h))
qw422016.N().S(NaviTitle(h))
//line views/readers.qtpl:113
qw422016.N().S(`
`)
@@ -456,7 +456,7 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Local
</section>
`)
//line views/readers.qtpl:129
StreamSubhyphaeHTML(qw422016, subhyphae, lc)
StreamSubhyphae(qw422016, subhyphae, lc)
//line views/readers.qtpl:129
qw422016.N().S(`
<section id="hypha-bottom">
@@ -469,12 +469,12 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Local
</main>
`)
//line views/readers.qtpl:134
qw422016.N().S(categoryCardHTML(h.CanonicalName()))
qw422016.N().S(categoryCard(h.CanonicalName()))
//line views/readers.qtpl:134
qw422016.N().S(`
`)
//line views/readers.qtpl:135
streamsiblingHyphaeHTML(qw422016, siblings, lc)
streamsiblingHyphae(qw422016, siblings, lc)
//line views/readers.qtpl:135
qw422016.N().S(`
</div>
@@ -488,22 +488,22 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Local
}
//line views/readers.qtpl:138
func WriteHyphaHTML(qq422016 qtio422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) {
func WriteHypha(qq422016 qtio422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) {
//line views/readers.qtpl:138
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/readers.qtpl:138
StreamHyphaHTML(qw422016, rq, lc, h, contents)
StreamHypha(qw422016, rq, lc, h, contents)
//line views/readers.qtpl:138
qt422016.ReleaseWriter(qw422016)
//line views/readers.qtpl:138
}
//line views/readers.qtpl:138
func HyphaHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) string {
func Hypha(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents string) string {
//line views/readers.qtpl:138
qb422016 := qt422016.AcquireByteBuffer()
//line views/readers.qtpl:138
WriteHyphaHTML(qb422016, rq, lc, h, contents)
WriteHypha(qb422016, rq, lc, h, contents)
//line views/readers.qtpl:138
qs422016 := string(qb422016.B)
//line views/readers.qtpl:138
@@ -514,7 +514,7 @@ func HyphaHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents st
}
//line views/readers.qtpl:140
func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
func StreamRevision(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
//line views/readers.qtpl:140
qw422016.N().S(`
<div class="layout">
@@ -539,7 +539,7 @@ func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Lo
qw422016.N().S(`</a></p>
`)
//line views/readers.qtpl:145
qw422016.N().S(NaviTitleHTML(h))
qw422016.N().S(NaviTitle(h))
//line views/readers.qtpl:145
qw422016.N().S(`
`)
@@ -560,22 +560,22 @@ func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Lo
}
//line views/readers.qtpl:151
func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
func WriteRevision(qq422016 qtio422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
//line views/readers.qtpl:151
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/readers.qtpl:151
StreamRevisionHTML(qw422016, rq, lc, h, contents, revHash)
StreamRevision(qw422016, rq, lc, h, contents, revHash)
//line views/readers.qtpl:151
qt422016.ReleaseWriter(qw422016)
//line views/readers.qtpl:151
}
//line views/readers.qtpl:151
func RevisionHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) string {
func Revision(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) string {
//line views/readers.qtpl:151
qb422016 := qt422016.AcquireByteBuffer()
//line views/readers.qtpl:151
WriteRevisionHTML(qb422016, rq, lc, h, contents, revHash)
WriteRevision(qb422016, rq, lc, h, contents, revHash)
//line views/readers.qtpl:151
qs422016 := string(qb422016.B)
//line views/readers.qtpl:151
+7 -7
View File
@@ -7,7 +7,7 @@
{% import "github.com/bouncepaw/mycorrhiza/util" %}
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
{% func BaseHTML(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) %}
{% func Base(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) %}
<!doctype html>
<html lang="{%s lc.Locale %}">
<head>
@@ -83,7 +83,7 @@
</html>
{% endfunc %}
{% func TitleSearchHTML(query string, generator func(string) <-chan string, lc *l18n.Localizer) %}
{% func TitleSearch(query string, generator func(string) <-chan string, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width title-search">
<h1>{%s lc.Get("ui.search_results_query", &l18n.Replacements{"query": query})%}</h1>
@@ -98,7 +98,7 @@
</div>
{% endfunc %}
{% func BacklinksHTML(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) %}
{% func Backlinks(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width backlinks">
<h1>{%s= lc.Get(
@@ -123,24 +123,24 @@
</div>
{% endfunc %}
{% func HelpHTML(content, lang string, lc *l18n.Localizer) %}
{% func Help(content, lang string, lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width help">
<article>
{%s= content %}
</article>
</main>
{%s= helpTopicsHTML(lang, lc) %}
{%s= helpTopics(lang, lc) %}
</div>
{% endfunc %}
{% func HelpEmptyErrorHTML(lc *l18n.Localizer) %}
{% func HelpEmptyError(lc *l18n.Localizer) %}
<h1>{%s lc.Get("help.empty_error_title") %}</h1>
<p>{%s lc.Get("help.empty_error_line_1") %}</p>
<p>{%s lc.Get("help.empty_error_line_2a") %} <a class="wikilink wikilink_external wikilink_https" href="https://github.com/bouncepaw/mycorrhiza">{%s lc.Get("help.empty_error_link") %}</a> {%s lc.Get("help.empty_error_line_2b") %}</p>
{% endfunc %}
{% func HyphaListHTML(lc *l18n.Localizer) %}
{% func HyphaList(lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width">
<h1>{%s lc.Get("ui.list_heading") %}</h1>
+31 -31
View File
@@ -39,7 +39,7 @@ var (
)
//line views/stuff.qtpl:10
func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) {
func StreamBase(qw422016 *qt422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) {
//line views/stuff.qtpl:10
qw422016.N().S(`
<!doctype html>
@@ -226,22 +226,22 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, lc *l18n.Loca
}
//line views/stuff.qtpl:84
func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) {
func WriteBase(qq422016 qtio422016.Writer, title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) {
//line views/stuff.qtpl:84
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:84
StreamBaseHTML(qw422016, title, body, lc, u, headElements...)
StreamBase(qw422016, title, body, lc, u, headElements...)
//line views/stuff.qtpl:84
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:84
}
//line views/stuff.qtpl:84
func BaseHTML(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) string {
func Base(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) string {
//line views/stuff.qtpl:84
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:84
WriteBaseHTML(qb422016, title, body, lc, u, headElements...)
WriteBase(qb422016, title, body, lc, u, headElements...)
//line views/stuff.qtpl:84
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:84
@@ -252,7 +252,7 @@ func BaseHTML(title, body string, lc *l18n.Localizer, u *user.User, headElements
}
//line views/stuff.qtpl:86
func StreamTitleSearchHTML(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) {
func StreamTitleSearch(qw422016 *qt422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) {
//line views/stuff.qtpl:86
qw422016.N().S(`
<div class="layout">
@@ -296,22 +296,22 @@ func StreamTitleSearchHTML(qw422016 *qt422016.Writer, query string, generator fu
}
//line views/stuff.qtpl:99
func WriteTitleSearchHTML(qq422016 qtio422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) {
func WriteTitleSearch(qq422016 qtio422016.Writer, query string, generator func(string) <-chan string, lc *l18n.Localizer) {
//line views/stuff.qtpl:99
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:99
StreamTitleSearchHTML(qw422016, query, generator, lc)
StreamTitleSearch(qw422016, query, generator, lc)
//line views/stuff.qtpl:99
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:99
}
//line views/stuff.qtpl:99
func TitleSearchHTML(query string, generator func(string) <-chan string, lc *l18n.Localizer) string {
func TitleSearch(query string, generator func(string) <-chan string, lc *l18n.Localizer) string {
//line views/stuff.qtpl:99
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:99
WriteTitleSearchHTML(qb422016, query, generator, lc)
WriteTitleSearch(qb422016, query, generator, lc)
//line views/stuff.qtpl:99
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:99
@@ -322,7 +322,7 @@ func TitleSearchHTML(query string, generator func(string) <-chan string, lc *l18
}
//line views/stuff.qtpl:101
func StreamBacklinksHTML(qw422016 *qt422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) {
func StreamBacklinks(qw422016 *qt422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) {
//line views/stuff.qtpl:101
qw422016.N().S(`
<div class="layout">
@@ -376,22 +376,22 @@ func StreamBacklinksHTML(qw422016 *qt422016.Writer, hyphaName string, generator
}
//line views/stuff.qtpl:124
func WriteBacklinksHTML(qq422016 qtio422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) {
func WriteBacklinks(qq422016 qtio422016.Writer, hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) {
//line views/stuff.qtpl:124
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:124
StreamBacklinksHTML(qw422016, hyphaName, generator, lc)
StreamBacklinks(qw422016, hyphaName, generator, lc)
//line views/stuff.qtpl:124
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:124
}
//line views/stuff.qtpl:124
func BacklinksHTML(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) string {
func Backlinks(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) string {
//line views/stuff.qtpl:124
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:124
WriteBacklinksHTML(qb422016, hyphaName, generator, lc)
WriteBacklinks(qb422016, hyphaName, generator, lc)
//line views/stuff.qtpl:124
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:124
@@ -402,7 +402,7 @@ func BacklinksHTML(hyphaName string, generator func(string) <-chan string, lc *l
}
//line views/stuff.qtpl:126
func StreamHelpHTML(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Localizer) {
func StreamHelp(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Localizer) {
//line views/stuff.qtpl:126
qw422016.N().S(`
<div class="layout">
@@ -417,7 +417,7 @@ func StreamHelpHTML(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Lo
</main>
`)
//line views/stuff.qtpl:133
qw422016.N().S(helpTopicsHTML(lang, lc))
qw422016.N().S(helpTopics(lang, lc))
//line views/stuff.qtpl:133
qw422016.N().S(`
</div>
@@ -426,22 +426,22 @@ func StreamHelpHTML(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Lo
}
//line views/stuff.qtpl:135
func WriteHelpHTML(qq422016 qtio422016.Writer, content, lang string, lc *l18n.Localizer) {
func WriteHelp(qq422016 qtio422016.Writer, content, lang string, lc *l18n.Localizer) {
//line views/stuff.qtpl:135
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:135
StreamHelpHTML(qw422016, content, lang, lc)
StreamHelp(qw422016, content, lang, lc)
//line views/stuff.qtpl:135
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:135
}
//line views/stuff.qtpl:135
func HelpHTML(content, lang string, lc *l18n.Localizer) string {
func Help(content, lang string, lc *l18n.Localizer) string {
//line views/stuff.qtpl:135
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:135
WriteHelpHTML(qb422016, content, lang, lc)
WriteHelp(qb422016, content, lang, lc)
//line views/stuff.qtpl:135
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:135
@@ -452,7 +452,7 @@ func HelpHTML(content, lang string, lc *l18n.Localizer) string {
}
//line views/stuff.qtpl:137
func StreamHelpEmptyErrorHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamHelpEmptyError(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/stuff.qtpl:137
qw422016.N().S(`
<h1>`)
@@ -483,22 +483,22 @@ func StreamHelpEmptyErrorHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/stuff.qtpl:141
func WriteHelpEmptyErrorHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteHelpEmptyError(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/stuff.qtpl:141
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:141
StreamHelpEmptyErrorHTML(qw422016, lc)
StreamHelpEmptyError(qw422016, lc)
//line views/stuff.qtpl:141
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:141
}
//line views/stuff.qtpl:141
func HelpEmptyErrorHTML(lc *l18n.Localizer) string {
func HelpEmptyError(lc *l18n.Localizer) string {
//line views/stuff.qtpl:141
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:141
WriteHelpEmptyErrorHTML(qb422016, lc)
WriteHelpEmptyError(qb422016, lc)
//line views/stuff.qtpl:141
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:141
@@ -509,7 +509,7 @@ func HelpEmptyErrorHTML(lc *l18n.Localizer) string {
}
//line views/stuff.qtpl:143
func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamHyphaList(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/stuff.qtpl:143
qw422016.N().S(`
<div class="layout">
@@ -592,22 +592,22 @@ func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/stuff.qtpl:174
func WriteHyphaListHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteHyphaList(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/stuff.qtpl:174
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/stuff.qtpl:174
StreamHyphaListHTML(qw422016, lc)
StreamHyphaList(qw422016, lc)
//line views/stuff.qtpl:174
qt422016.ReleaseWriter(qw422016)
//line views/stuff.qtpl:174
}
//line views/stuff.qtpl:174
func HyphaListHTML(lc *l18n.Localizer) string {
func HyphaList(lc *l18n.Localizer) string {
//line views/stuff.qtpl:174
qb422016 := qt422016.AcquireByteBuffer()
//line views/stuff.qtpl:174
WriteHyphaListHTML(qb422016, lc)
WriteHyphaList(qb422016, lc)
//line views/stuff.qtpl:174
qs422016 := string(qb422016.B)
//line views/stuff.qtpl:174
+1 -1
View File
@@ -12,7 +12,7 @@ var hyphaListL10n = map[string]l10nEntry{
}
%}
{% func UserListHTML(lc *l18n.Localizer) %}
{% func UserList(lc *l18n.Localizer) %}
<div class="layout">
<main class="main-width user-list">
{% code
+5 -5
View File
@@ -38,7 +38,7 @@ var hyphaListL10n = map[string]l10nEntry{
}
//line views/user_list.qtpl:15
func StreamUserListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
func StreamUserList(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
//line views/user_list.qtpl:15
qw422016.N().S(`
<div class="layout">
@@ -173,22 +173,22 @@ func StreamUserListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
}
//line views/user_list.qtpl:64
func WriteUserListHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
func WriteUserList(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
//line views/user_list.qtpl:64
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/user_list.qtpl:64
StreamUserListHTML(qw422016, lc)
StreamUserList(qw422016, lc)
//line views/user_list.qtpl:64
qt422016.ReleaseWriter(qw422016)
//line views/user_list.qtpl:64
}
//line views/user_list.qtpl:64
func UserListHTML(lc *l18n.Localizer) string {
func UserList(lc *l18n.Localizer) string {
//line views/user_list.qtpl:64
qb422016 := qt422016.AcquireByteBuffer()
//line views/user_list.qtpl:64
WriteUserListHTML(qb422016, lc)
WriteUserList(qb422016, lc)
//line views/user_list.qtpl:64
qs422016 := string(qb422016.B)
//line views/user_list.qtpl:64