index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff
gitrs / templates / repository / tag.html
-rw-r--r-- blob 68865bc0ca99560d0851ad5741fdf20e8caa5764 1273 bytes (plain)
1
{% extends "base.html" %}
2
3
{% block title %}{{ repo.name }} — {{ repo.description }}{% endblock %}
4
5
{% block header %}
6
  {{ macros::header(Some(repo), branch_names, Some(current_ref)) }}
7
{% endblock %}
8
9
{% block tabs %}
10
  {{ macros::repo_tabs(repo, current_ref, query, "refs") }}
11
{% endblock %}
12
13
{% block content %}
14
  <table class="commit-info">
15
    <tbody>
16
      <tr>
17
        <td>tag name</td>
18
        <td>{{ tag.name }}</td>
19
      </tr>
20
      <tr>
21
        <td>tag date</td>
22
        <td>{{ tag.time.format() }}</td>
23
      </tr>
24
      {% if let Some(tagger) = tag.tagger %}
25
        <tr>
26
          <td>tagged by</td>
27
          <td>{{ tagger.name }} &lt;{{ tagger.email }}&gt;</td>
28
        </tr>
29
      {% endif %}
30
      {% if let Some(tagged_object) = tag.tagged_object %}
31
      <tr>
32
        <td>tagged object</td>
33
        <td>
34
        {% match tagged_object %}
35
            {% when TaggedObject::Commit with (commit) %}
36
              commit <a href="/{{ repo.name }}/commit/?id={{ commit }}">{{ commit|truncate(10) }}</a>
37
            {% when TaggedObject::Tree with (tree) %}
38
            tree {{ tree }}
39
        {% endmatch %}
40
        </td>
41
      {% endif %}
42
      </tr>
43
    </tbody>
44
  </table>
45
46
  <div class="commit-subject">
47
    {{ tag.message }}
48
  </div>
49
{% endblock %}