Blob: refs.html

Blob id: 2ea4202118215620af9f46681480359ee9327a57

Size: 978 B

 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
{% extends "base.html" %}

{% block content %}
    <h2>References</h2>
    <table>
        <thead>
            <tr style="font-weight: bold;">
                <td>Name</td>
                <td>Target</td>
                <td>Author</td>
                <td>Age</td>
                <td>Actions</td>
            </tr>
        </thead>
        <tbody>
            {% for ref in refs %}
                <tr>
                    <td valign="top" nowrap>{{ ref.name }}</td>
                    <td valign="top" nowrap>{{ ref.target[:8] }}</td>
                    <td valign="top" nowrap>{{ ref.author.name if ref.author else 'N/A' }}</td>
                    <td valign="top" nowrap>{{ ref.date | age if ref.date else 'N/A' }}</td>
                    <td valign="top" nowrap><a href="{{ url_for('repo_tree_path', repo_name=repo_name, path='') }}?ref={{ ref.shorthand }}">View Tree</a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}