aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/handler/router.go4
-rw-r--r--templates/gititemrefs.qtpl8
-rw-r--r--templates/gititemrefs.qtpl.go8
-rw-r--r--templates/gititemsummary.qtpl8
-rw-r--r--templates/gititemsummary.qtpl.go8
-rw-r--r--templates/gitlist.qtpl8
-rw-r--r--templates/gitlist.qtpl.go8
-rw-r--r--templates/navbar.qtpl12
-rw-r--r--templates/navbar.qtpl.go8
9 files changed, 36 insertions, 36 deletions
diff --git a/pkg/handler/router.go b/pkg/handler/router.go
index 3da812f..c8f8984 100644
--- a/pkg/handler/router.go
+++ b/pkg/handler/router.go
@@ -36,11 +36,11 @@ func MountHandler(
mux.HandleFunc("/static/{file}", staticHandler)
mux.HandleFunc("/{name}/about/{$}", gitHandler.About)
- mux.HandleFunc("/{name}", gitHandler.Summary)
+ mux.HandleFunc("/{name}/", gitHandler.Summary)
mux.HandleFunc("/{name}/refs/{$}", gitHandler.Refs)
mux.HandleFunc("/{name}/tree/{ref}/{rest...}", gitHandler.Tree)
mux.HandleFunc("/{name}/blob/{ref}/{rest...}", gitHandler.Blob)
- mux.HandleFunc("/{name}/log/{ref}", gitHandler.Log)
+ mux.HandleFunc("/{name}/log/{ref}/", gitHandler.Log)
mux.HandleFunc("/config", configHandler)
mux.HandleFunc("/about", aboutHandler.About)
mux.HandleFunc("/", gitHandler.List)
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 {
</div>
<div class="col-8">
<div class="float-end">
- <a href="/{%s name %}/tree/{%s t.Name().Short() %}">tree</a>
- <a href="/{%s name %}/log/{%s t.Name().Short() %}">log</a>
+ <a href="/{%s name %}/tree/{%s t.Name().Short() %}/">tree</a>
+ <a href="/{%s name %}/log/{%s t.Name().Short() %}/">log</a>
</div>
</div>
</div>
@@ -41,8 +41,8 @@ type GitItemRefsPage struct {
</div>
<div class="col-8">
<div class="float-end">
- <a href="/{%s name %}/tree/{%s b.Name().Short() %}">tree</a>
- <a href="/{%s name %}/log/{%s b.Name().Short() %}">log</a>
+ <a href="/{%s name %}/tree/{%s b.Name().Short() %}/">tree</a>
+ <a href="/{%s name %}/log/{%s b.Name().Short() %}/">log</a>
</div>
</div>
</div>
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</a>
+ qw422016.N().S(`/">tree</a>
<a href="/`)
//line gititemrefs.qtpl:25
qw422016.E().S(name)
@@ -103,7 +103,7 @@ func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
//line gititemrefs.qtpl:25
qw422016.E().S(t.Name().Short())
//line gititemrefs.qtpl:25
- qw422016.N().S(`">log</a>
+ qw422016.N().S(`/">log</a>
</div>
</div>
</div>
@@ -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</a>
+ qw422016.N().S(`/">tree</a>
<a href="/`)
//line gititemrefs.qtpl:45
qw422016.E().S(name)
@@ -159,7 +159,7 @@ func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
//line gititemrefs.qtpl:45
qw422016.E().S(b.Name().Short())
//line gititemrefs.qtpl:45
- qw422016.N().S(`">log</a>
+ qw422016.N().S(`/">log</a>
</div>
</div>
</div>
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 {
</div>
<div class="col-8">
<div class="float-end">
- <a href="/{%s name %}/tree/{%s t.Name().Short() %}">tree</a>
- <a href="/{%s name %}/log/{%s t.Name().Short() %}">log</a>
+ <a href="/{%s name %}/tree/{%s t.Name().Short() %}/">tree</a>
+ <a href="/{%s name %}/log/{%s t.Name().Short() %}/">log</a>
</div>
</div>
</div>
@@ -43,8 +43,8 @@ type GitItemSummaryPage struct {
</div>
<div class="col-8">
<div class="float-end">
- <a href="/{%s name %}/tree/{%s b.Name().Short() %}">tree</a>
- <a href="/{%s name %}/log/{%s b.Name().Short() %}">log</a>
+ <a href="/{%s name %}/tree/{%s b.Name().Short() %}/">tree</a>
+ <a href="/{%s name %}/log/{%s b.Name().Short() %}/">log</a>
</div>
</div>
</div>
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</a>
+ qw422016.N().S(`/">tree</a>
<a href="/`)
//line gititemsummary.qtpl:27
qw422016.E().S(name)
@@ -107,7 +107,7 @@ func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, r
//line gititemsummary.qtpl:27
qw422016.E().S(t.Name().Short())
//line gititemsummary.qtpl:27
- qw422016.N().S(`">log</a>
+ qw422016.N().S(`/">log</a>
</div>
</div>
</div>
@@ -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</a>
+ qw422016.N().S(`/">tree</a>
<a href="/`)
//line gititemsummary.qtpl:47
qw422016.E().S(name)
@@ -163,7 +163,7 @@ func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, r
//line gititemsummary.qtpl:47
qw422016.E().S(b.Name().Short())
//line gititemsummary.qtpl:47
- qw422016.N().S(`">log</a>
+ qw422016.N().S(`/">log</a>
</div>
</div>
</div>
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 %}
<div class="event">
<h4>
- <a href="/{%s r.Name %}">{%s r.Name %}</a>
+ <a href="/{%s r.Name %}/">{%s r.Name %}</a>
</h4>
</hr>
<p>{%s r.Description %}</p>
<p>
- <a href="/{%s r.Name %}/log/{%s r.Ref %}">log</a>
- <a href="/{%s r.Name %}/tree/{%s r.Ref %}">tree</a>
- <a href="/{%s r.Name %}/refs">refs</a>
+ <a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a>
+ <a href="/{%s r.Name %}/tree/{%s r.Ref %}/">tree</a>
+ <a href="/{%s r.Name %}/refs/">refs</a>
</p>
</div>
{% 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</a>
+ qw422016.N().S(`/">log</a>
<a href="/`)
//line gitlist.qtpl:27
qw422016.E().S(r.Name)
@@ -140,12 +140,12 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) {
//line gitlist.qtpl:27
qw422016.E().S(r.Ref)
//line gitlist.qtpl:27
- qw422016.N().S(`">tree</a>
+ qw422016.N().S(`/">tree</a>
<a href="/`)
//line gitlist.qtpl:28
qw422016.E().S(r.Name)
//line gitlist.qtpl:28
- qw422016.N().S(`/refs">refs</a>
+ qw422016.N().S(`/refs/">refs</a>
</p>
</div>
`)
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 (
<a class="nav-link{%= insertIfEqual(s, Git) %}" href="/">git</a>
{% comment %}
Add this back once needed
- <a class="nav-link{%= insertIfEqual(s, List) %}" href="/list">list</a>
+ <a class="nav-link{%= insertIfEqual(s, List) %}" href="/list/">list</a>
{% endcomment %}
{% comment %}
Add this back if needed
- <a class="nav-link{%= insertIfEqual(s, About) %}" href="/about">about</a>
+ <a class="nav-link{%= insertIfEqual(s, About) %}" href="/about/">about</a>
{% endcomment %}
<a class="nav-link{%= insertIfEqual(s, Config) %}" href="/config">config</a>
</div>
@@ -45,19 +45,19 @@ Add this back if needed
<div class="row">
<ul class="nav">
<li class="nav-item">
- <a class="nav-link{%= insertIfEqual(s, Readme) %}" aria-current="page" href="/{%s name %}/about">about</a>
+ <a class="nav-link{%= insertIfEqual(s, Readme) %}" aria-current="page" href="/{%s name %}/about/">about</a>
</li>
<li class="nav-item">
- <a class="nav-link{%= insertIfEqual(s, Log) %}" aria-current="page" href="/{%s name %}/log/{%s ref %}">log</a>
+ <a class="nav-link{%= insertIfEqual(s, Log) %}" aria-current="page" href="/{%s name %}/log/{%s ref %}/">log</a>
</li>
<li class="nav-item">
- <a class="nav-link{%= insertIfEqual(s, Summary) %}" aria-current="page" href="/{%s name %}">summary</a>
+ <a class="nav-link{%= insertIfEqual(s, Summary) %}" aria-current="page" href="/{%s name %}/">summary</a>
</li>
<li class="nav-item">
<a class="nav-link{%= insertIfEqual(s, Refs) %}" aria-current="page" href="/{%s name %}/refs">refs</a>
</li>
<li class="nav-item">
- <a class="nav-link{%= insertIfEqual(s, Tree) %}" aria-current="page" href="/{%s name %}/tree/{%s ref %}">tree</a>
+ <a class="nav-link{%= insertIfEqual(s, Tree) %}" aria-current="page" href="/{%s name %}/tree/{%s ref %}/">tree</a>
</li>
</ul>
</div>
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</a>
+ qw422016.N().S(`/about/">about</a>
</li>
<li class="nav-item">
<a class="nav-link`)
@@ -176,7 +176,7 @@ func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelectio
//line navbar.qtpl:51
qw422016.E().S(ref)
//line navbar.qtpl:51
- qw422016.N().S(`">log</a>
+ qw422016.N().S(`/">log</a>
</li>
<li class="nav-item">
<a class="nav-link`)
@@ -187,7 +187,7 @@ func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelectio
//line navbar.qtpl:54
qw422016.E().S(name)
//line navbar.qtpl:54
- qw422016.N().S(`">summary</a>
+ qw422016.N().S(`/">summary</a>
</li>
<li class="nav-item">
<a class="nav-link`)
@@ -213,7 +213,7 @@ func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelectio
//line navbar.qtpl:60
qw422016.E().S(ref)
//line navbar.qtpl:60
- qw422016.N().S(`">tree</a>
+ qw422016.N().S(`/">tree</a>
</li>
</ul>
</div>