aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemrefs.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-09 20:07:00 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-09 20:07:00 +0200
commit2fcc394c53f995750b52ad06153041f61f0a0c55 (patch)
tree6828a8e2520fdf27611efb33509f3cc745de68d4 /templates/gititemrefs.qtpl
parent02614b3781f6acdfc6df0e7b07d856b2779c4ac7 (diff)
downloadcerrado-2fcc394c53f995750b52ad06153041f61f0a0c55.tar.gz
cerrado-2fcc394c53f995750b52ad06153041f61f0a0c55.tar.bz2
cerrado-2fcc394c53f995750b52ad06153041f61f0a0c55.zip
feat: Add global reference to ref and name
Diffstat (limited to 'templates/gititemrefs.qtpl')
-rw-r--r--templates/gititemrefs.qtpl24
1 files changed, 14 insertions, 10 deletions
diff --git a/templates/gititemrefs.qtpl b/templates/gititemrefs.qtpl
index 56f6c2b..47a69e3 100644
--- a/templates/gititemrefs.qtpl
+++ b/templates/gititemrefs.qtpl
@@ -10,13 +10,12 @@ type GitItemRefsPage struct {
{% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %}
-{% func (g *GitItemRefsPage) GitContent() %}
+{% func (g *GitItemRefsPage) GitContent(name, ref string) %}
<div class="row">
- <div class="col-xxl">
- <h4>Tags</h4>
- <div class="logs">
+ <div class="col-md-8">
+ <div class="event-list">
{% for _, t := range g.Tags %}
- <div class="row">
+ <div class="row event">
<div class="col-xxl-2">
{%s TimeFormat(t.Tagger.When) %}
</div>
@@ -30,14 +29,19 @@ type GitItemRefsPage struct {
{% endfor %}
</div>
</div>
- <div class="col-xxl">
- <h4>Branches</h4>
- <div class="logs">
+ <div class="col-md-4">
+ <div class="event-list">
{% for _, b := range g.Branches %}
- <div class="row">
- <div class="col-xxl">
+ <div class="row event">
+ <div class="col-4">
{%s b.Name().Short() %}
</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>
+ </div>
+ </div>
</div>
{% endfor %}
</div>