aboutsummaryrefslogtreecommitdiff
path: root/templates/tags.qtpl
blob: 5cd617fc26b94a2513c0b1fc86d89c9d6e8b8132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% import "git.gabrielgio.me/cerrado/pkg/git" %}

{% func ListTags(name string, tags []*git.TagReference) %}
{% if len(tags) > 0 %}
<div class="event-list">
  {% for _, t := range tags %}
  <div class="event me-md-2">
    <div class="row ">
      <div class="col-4">
       <a title="{%s t.HashString() %}" href="/{%s name %}/commit/{%s t.HashString() %}">{%s t.ShortName() %}</a>
      </div>
      <div class="col-8">
        <div class="float-end">
          <a href="/{%s name %}/archive/{%s t.ShortName() %}.tar.gz">tar.gz</a>
          <a href="/{%s name %}/tree/{%s t.ShortName() %}/">tree</a>
          <a href="/{%s name %}/log/{%s t.ShortName() %}/">log</a>
        </div>
      </div>
    </div>
    {% if t.Message() != "" %}
    <div class="code-view">
      <pre>{%s t.Message() %}</pre>
    </div>
    {% endif %}
  </div>
  {% endfor %}
</div>
{% else %}
    <p> No tags </p>
{% endif %}
{% endfunc %}