From 10925e006bf43edc79331fbe601e09a28c43df2b Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Jun 2024 19:21:34 +0200 Subject: fix: Reduce some redirects --- templates/gititemrefs.qtpl | 8 ++++---- templates/gititemrefs.qtpl.go | 8 ++++---- templates/gititemsummary.qtpl | 8 ++++---- templates/gititemsummary.qtpl.go | 8 ++++---- templates/gitlist.qtpl | 8 ++++---- templates/gitlist.qtpl.go | 8 ++++---- templates/navbar.qtpl | 12 ++++++------ templates/navbar.qtpl.go | 8 ++++---- 8 files changed, 34 insertions(+), 34 deletions(-) (limited to 'templates') diff --git a/templates/gititemrefs.qtpl b/templates/gititemrefs.qtpl index 09d7446..ff1561b 100644 --- a/templates/gititemrefs.qtpl +++ b/templates/gititemrefs.qtpl @@ -21,8 +21,8 @@ type GitItemRefsPage struct {
- tree - log + tree + log
@@ -41,8 +41,8 @@ type GitItemRefsPage struct {
- tree - log + tree + log
diff --git a/templates/gititemrefs.qtpl.go b/templates/gititemrefs.qtpl.go index 62c1725..b00736e 100644 --- a/templates/gititemrefs.qtpl.go +++ b/templates/gititemrefs.qtpl.go @@ -94,7 +94,7 @@ func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref //line gititemrefs.qtpl:24 qw422016.E().S(t.Name().Short()) //line gititemrefs.qtpl:24 - qw422016.N().S(`">tree + qw422016.N().S(`/">tree log + qw422016.N().S(`/">log @@ -150,7 +150,7 @@ func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref //line gititemrefs.qtpl:44 qw422016.E().S(b.Name().Short()) //line gititemrefs.qtpl:44 - qw422016.N().S(`">tree + qw422016.N().S(`/">tree log + qw422016.N().S(`/">log diff --git a/templates/gititemsummary.qtpl b/templates/gititemsummary.qtpl index 9a3e2ee..e3d3a08 100644 --- a/templates/gititemsummary.qtpl +++ b/templates/gititemsummary.qtpl @@ -23,8 +23,8 @@ type GitItemSummaryPage struct {
- tree - log + tree + log
@@ -43,8 +43,8 @@ type GitItemSummaryPage struct {
- tree - log + tree + log
diff --git a/templates/gititemsummary.qtpl.go b/templates/gititemsummary.qtpl.go index cf1c07c..ad025f7 100644 --- a/templates/gititemsummary.qtpl.go +++ b/templates/gititemsummary.qtpl.go @@ -98,7 +98,7 @@ func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, r //line gititemsummary.qtpl:26 qw422016.E().S(t.Name().Short()) //line gititemsummary.qtpl:26 - qw422016.N().S(`">tree + qw422016.N().S(`/">tree log + qw422016.N().S(`/">log @@ -154,7 +154,7 @@ func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, r //line gititemsummary.qtpl:46 qw422016.E().S(b.Name().Short()) //line gititemsummary.qtpl:46 - qw422016.N().S(`">tree + qw422016.N().S(`/">tree log + qw422016.N().S(`/">log diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 937ba22..ff2eca9 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -18,14 +18,14 @@ type GitListPage struct { {% for _, r := range p.Respositories %}

- {%s r.Name %} + {%s r.Name %}

{%s r.Description %}

- log - tree - refs + log + tree + refs

{% endfor %} diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go index 435626e..f38c404 100644 --- a/templates/gitlist.qtpl.go +++ b/templates/gitlist.qtpl.go @@ -110,7 +110,7 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) { //line gitlist.qtpl:21 qw422016.E().S(r.Name) //line gitlist.qtpl:21 - qw422016.N().S(`">`) + qw422016.N().S(`/">`) //line gitlist.qtpl:21 qw422016.E().S(r.Name) //line gitlist.qtpl:21 @@ -131,7 +131,7 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) { //line gitlist.qtpl:26 qw422016.E().S(r.Ref) //line gitlist.qtpl:26 - qw422016.N().S(`">log + qw422016.N().S(`/">log tree + qw422016.N().S(`/">tree refs + qw422016.N().S(`/refs/">refs

`) diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl index 4d2a6a9..9e27961 100644 --- a/templates/navbar.qtpl +++ b/templates/navbar.qtpl @@ -27,11 +27,11 @@ const ( git {% comment %} Add this back once needed - list + list {% endcomment %} {% comment %} Add this back if needed - about + about {% endcomment %} config @@ -45,19 +45,19 @@ Add this back if needed
diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index 1eacd6a..28e6f8e 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -161,7 +161,7 @@ func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelectio //line navbar.qtpl:48 qw422016.E().S(name) //line navbar.qtpl:48 - qw422016.N().S(`/about">about + qw422016.N().S(`/about/">about -- cgit v1.2.3