From 3784181e4fad3c947dfa95081d8a0b34f5be12d4 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Wed, 11 Dec 2024 18:10:12 +0100 Subject: feat: Disable auth if passphrase is empty Disable all auth mechanism when passphrase is empty. That will allow for a simpler setup. --- templates/navbar.qtpl.go | 156 +++++++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 73 deletions(-) (limited to 'templates/navbar.qtpl.go') diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index b359ffb..47573a7 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -94,181 +94,191 @@ func StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context, s Selection) { `) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 } -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 func WriteNavbar(qq422016 qtio422016.Writer, ctx context.Context, s Selection) { -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 StreamNavbar(qw422016, ctx, s) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 qt422016.ReleaseWriter(qw422016) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 } -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 func Navbar(ctx context.Context, s Selection) string { -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 qb422016 := qt422016.AcquireByteBuffer() -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 WriteNavbar(qb422016, ctx, s) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 qs422016 := string(qb422016.B) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 qt422016.ReleaseByteBuffer(qb422016) -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 return qs422016 -//line templates/navbar.qtpl:48 +//line templates/navbar.qtpl:50 } -//line templates/navbar.qtpl:50 +//line templates/navbar.qtpl:52 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { -//line templates/navbar.qtpl:50 +//line templates/navbar.qtpl:52 qw422016.N().S(`

`) -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 qw422016.E().S(name) -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 qw422016.N().S(` `) -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 if ref != "" && (s == Log || s == Tree) { -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 qw422016.N().S(`@ `) -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 qw422016.E().S(ref) -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 } -//line templates/navbar.qtpl:52 +//line templates/navbar.qtpl:54 qw422016.N().S(`

`) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 } -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) { -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 StreamGitItemNav(qw422016, name, ref, s) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 qt422016.ReleaseWriter(qw422016) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 } -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 func GitItemNav(name, ref string, s GitSelection) string { -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 qb422016 := qt422016.AcquireByteBuffer() -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 WriteGitItemNav(qb422016, name, ref, s) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 qs422016 := string(qb422016.B) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 qt422016.ReleaseByteBuffer(qb422016) -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 return qs422016 -//line templates/navbar.qtpl:73 +//line templates/navbar.qtpl:75 } -- cgit v1.2.3