aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-01 19:59:43 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-01 19:59:43 +0200
commite3705f35c642e578625ce4574d189fa0b0869403 (patch)
treef63d779d4eb817ad6b5abed30f50ad3b85ffcab1 /templates/gitlist.qtpl
parentf1643ffcbd543cacfe9ab5e46eafdd0c39cd47fd (diff)
downloadcerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.gz
cerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.bz2
cerrado-e3705f35c642e578625ce4574d189fa0b0869403.zip
feat: Add ref support
Now log and tree can be loaded using a given reference.
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r--templates/gitlist.qtpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl
index b7beca5..3d7ef82 100644
--- a/templates/gitlist.qtpl
+++ b/templates/gitlist.qtpl
@@ -17,15 +17,15 @@ type GitListPage struct {
{% for _, r := range p.Respositories %}
<div class="event">
<h4>
- <a href="/{%s r.Name %}/summary">{%s r.Name %}</a>
+ <a href="/{%s r.Name %}">{%s r.Name %}</a>
</h4>
</hr>
<p>{%s r.LastCommitMessage %}</p>
<p><small>{%s r.LastCommitDate %}</small></p>
<p>
- <a href="/{%s r.Name %}/summary">summary</a>
- <a href="/{%s r.Name %}/log">log</a>
- <a href="/{%s r.Name %}/tree">tree</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 %}