From 6a3a7a85ef2f63e88a8c96aa3ab525ce843024f9 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 28 Oct 2024 13:04:08 +0100 Subject: feat: Add login link to the header --- templates/navbar.qtpl.go | 172 +++++++++++++++++++++++++---------------------- 1 file changed, 90 insertions(+), 82 deletions(-) (limited to 'templates/navbar.qtpl.go') diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index ca3a320..e6ca0aa 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -36,208 +36,216 @@ const ( Summary Refs Tree + Login ) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 func streaminsertIfEqual(qw422016 *qt422016.Writer, s, d any) { -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 if s == d { -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qw422016.N().S(` selected`) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 } -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 } -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 func writeinsertIfEqual(qq422016 qtio422016.Writer, s, d any) { -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 streaminsertIfEqual(qw422016, s, d) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qt422016.ReleaseWriter(qw422016) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 } -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 func insertIfEqual(s, d any) string { -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qb422016 := qt422016.AcquireByteBuffer() -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 writeinsertIfEqual(qb422016, s, d) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qs422016 := string(qb422016.B) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 qt422016.ReleaseByteBuffer(qb422016) -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 return qs422016 -//line templates/navbar.qtpl:22 +//line templates/navbar.qtpl:23 } -//line templates/navbar.qtpl:24 +//line templates/navbar.qtpl:25 func StreamNavbar(qw422016 *qt422016.Writer, s Selection) { -//line templates/navbar.qtpl:24 +//line templates/navbar.qtpl:25 qw422016.N().S(` `) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 } -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 func WriteNavbar(qq422016 qtio422016.Writer, s Selection) { -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 StreamNavbar(qw422016, s) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 qt422016.ReleaseWriter(qw422016) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 } -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 func Navbar(s Selection) string { -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 qb422016 := qt422016.AcquireByteBuffer() -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 WriteNavbar(qb422016, s) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 qs422016 := string(qb422016.B) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 qt422016.ReleaseByteBuffer(qb422016) -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 return qs422016 -//line templates/navbar.qtpl:38 +//line templates/navbar.qtpl:42 } -//line templates/navbar.qtpl:40 +//line templates/navbar.qtpl:44 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { -//line templates/navbar.qtpl:40 +//line templates/navbar.qtpl:44 qw422016.N().S(`

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

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