diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-07-02 20:45:16 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-07-02 20:45:16 +0200 |
commit | d1638198df3a65fe89bfb28f6e1dd285877b55bc (patch) | |
tree | d7532d4f346e3ad8cf36ae95e365e79f8aa334e5 /templates/gititemtree.qtpl.go | |
parent | cb6060a60d71ce1be1591bb10f499916155160de (diff) | |
download | cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.gz cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.bz2 cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.zip |
Diffstat (limited to 'templates/gititemtree.qtpl.go')
-rw-r--r-- | templates/gititemtree.qtpl.go | 12 |
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 |