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 | |
| parent | cb6060a60d71ce1be1591bb10f499916155160de (diff) | |
| download | cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.gz cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.bz2 cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.zip  | |
feat: Show git clone url on summaryv0.3
Diffstat (limited to 'templates/gititemtree.qtpl')
| -rw-r--r-- | templates/gititemtree.qtpl | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/gititemtree.qtpl b/templates/gititemtree.qtpl index 2753e24..677d8ec 100644 --- a/templates/gititemtree.qtpl +++ b/templates/gititemtree.qtpl @@ -15,7 +15,7 @@  )  %} -{% code func url(name, mode, ref, filename string, path []string) string { +{% code func generateURL(name, mode, ref, filename string, path []string) string {      return u.NewPathing().          AddPath(name).          AddPath(mode). @@ -32,9 +32,9 @@  <div class="pathing">      {% stripspace %}      {% if len(g.Path) != 0 %} -    <a href="{%s url(name, Folder, ref, Root, []string{}) %}">root/</a> +    <a href="{%s generateURL(name, Folder, ref, Root, []string{}) %}">root/</a>      {% for i, e := range g.Path[:len(g.Path)-1] %} -    <a href="{%s url(name, Folder, ref, Root, g.Path[:1+i]) %}">{%s e %}/</a> +    <a href="{%s generateURL(name, Folder, ref, Root, g.Path[:1+i]) %}">{%s e %}/</a>      {% endfor %}      <a>{%s u.LastOrZero(g.Path) %}</a>      {% else %} @@ -46,7 +46,7 @@    <div class="col-md-12">      <div class="tree-list">        {% if len(g.Path) != 0 %} -          <div class="mode"><a href="{%s url(name, Folder, ref, g.Path[len(g.Path)-1], g.Path[:len(g.Path)-1]) %}">..</a></div> +          <div class="mode"><a href="{%s generateURL(name, Folder, ref, g.Path[len(g.Path)-1], g.Path[:len(g.Path)-1]) %}">..</a></div>            <div class="name tree"></div>            <div class="commit"></div>            <div class="date"></div> @@ -55,13 +55,13 @@        {% for _, e := range g.Tree.Entries %}            {% if e.Mode.IsFile() %}            <div class="mode">{%s Ignore(e.Mode.ToOSFileMode()).String() %}</div> -          <div class="name blob"><a href="{%s url(name, Blob, ref, e.Name, g.Path) %}">{%s e.Name %}</a></div> +          <div class="name blob"><a href="{%s generateURL(name, Blob, ref, e.Name, g.Path) %}">{%s e.Name %}</a></div>            {% elseif e.Mode ==  filemode.Submodule %}            <div class="mode">m---------</div>            <div class="name tree">{%s e.Name %} (submodule)</div>            {% else %}            <div class="mode">d---------</div> -          <div class="name tree"><a href="{%s url(name, Folder, ref, e.Name, g.Path) %}">{%s e.Name %}</a></div> +          <div class="name tree"><a href="{%s generateURL(name, Folder, ref, e.Name, g.Path) %}">{%s e.Name %}</a></div>            {% endif %}            <div class="commit"></div>            <div class="date"></div>  | 
