aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemtree.qtpl.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-07-02 20:45:16 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-07-02 20:45:16 +0200
commitd1638198df3a65fe89bfb28f6e1dd285877b55bc (patch)
treed7532d4f346e3ad8cf36ae95e365e79f8aa334e5 /templates/gititemtree.qtpl.go
parentcb6060a60d71ce1be1591bb10f499916155160de (diff)
downloadcerrado-0.3.tar.gz
cerrado-0.3.tar.bz2
cerrado-0.3.zip
feat: Show git clone url on summaryHEADv0.3master
Diffstat (limited to 'templates/gititemtree.qtpl.go')
-rw-r--r--templates/gititemtree.qtpl.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/gititemtree.qtpl.go b/templates/gititemtree.qtpl.go
index 9116cd7..7a378cc 100644
--- a/templates/gititemtree.qtpl.go
+++ b/templates/gititemtree.qtpl.go
@@ -40,7 +40,7 @@ const (
)
//line templates/gititemtree.qtpl:18
-func url(name, mode, ref, filename string, path []string) string {
+func generateURL(name, mode, ref, filename string, path []string) string {
return u.NewPathing().
AddPath(name).
AddPath(mode).
@@ -94,7 +94,7 @@ func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
//line templates/gititemtree.qtpl:34
qw422016.N().S(`<a href="`)
//line templates/gititemtree.qtpl:35
- qw422016.E().S(url(name, Folder, ref, Root, []string{}))
+ qw422016.E().S(generateURL(name, Folder, ref, Root, []string{}))
//line templates/gititemtree.qtpl:35
qw422016.N().S(`">root/</a>`)
//line templates/gititemtree.qtpl:36
@@ -102,7 +102,7 @@ func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
//line templates/gititemtree.qtpl:36
qw422016.N().S(`<a href="`)
//line templates/gititemtree.qtpl:37
- qw422016.E().S(url(name, Folder, ref, Root, g.Path[:1+i]))
+ qw422016.E().S(generateURL(name, Folder, ref, Root, g.Path[:1+i]))
//line templates/gititemtree.qtpl:37
qw422016.N().S(`">`)
//line templates/gititemtree.qtpl:37
@@ -136,7 +136,7 @@ func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
qw422016.N().S(`
<div class="mode"><a href="`)
//line templates/gititemtree.qtpl:49
- qw422016.E().S(url(name, Folder, ref, g.Path[len(g.Path)-1], g.Path[:len(g.Path)-1]))
+ qw422016.E().S(generateURL(name, Folder, ref, g.Path[len(g.Path)-1], g.Path[:len(g.Path)-1]))
//line templates/gititemtree.qtpl:49
qw422016.N().S(`">..</a></div>
<div class="name tree"></div>
@@ -165,7 +165,7 @@ func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
qw422016.N().S(`</div>
<div class="name blob"><a href="`)
//line templates/gititemtree.qtpl:58
- qw422016.E().S(url(name, Blob, ref, e.Name, g.Path))
+ qw422016.E().S(generateURL(name, Blob, ref, e.Name, g.Path))
//line templates/gititemtree.qtpl:58
qw422016.N().S(`">`)
//line templates/gititemtree.qtpl:58
@@ -191,7 +191,7 @@ func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref
<div class="mode">d---------</div>
<div class="name tree"><a href="`)
//line templates/gititemtree.qtpl:64
- qw422016.E().S(url(name, Folder, ref, e.Name, g.Path))
+ qw422016.E().S(generateURL(name, Folder, ref, e.Name, g.Path))
//line templates/gititemtree.qtpl:64
qw422016.N().S(`">`)
//line templates/gititemtree.qtpl:64