ID: e2b4594d048283548457630baaa0c4f8f3d280a7
78 lines
—
3K —
View raw
| {% extends "repository/repository.html" %}
{% block page_title %}Refs: {{ repository }}{% endblock %}
{% block menu_refs_class %}selected{% endblock %}
{% block content %}
<table class="refs">
<thead>
<tr>
<td><b>Head</b></td>
<td><b>Commit</b></td>
<td><b>Committed</b></td>
</tr>
</thead>
<tbody class="striped">
{% for head in heads %}
<tr>
<td>
<a href="{{ url('tree', repository=repository[:-4], revision=head.ref.shorthand) }}">{{ head.ref.shorthand }}</a>
{% if head.ref.name == HEAD %}
<span class="head_label">HEAD</span>
{% endif %}
</td>
<td>
[{{ head.commit.short_id }}]
{{ head.commit.message[:80] }}...
</td>
<td>
{{ commit_time(head.commit.committer.time, head.commit.committer.offset)|ago }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<br /><br />
<table class="refs">
<thead>
<tr>
<td><b>Tag</b></td>
<td><b>Tagger</b></td>
<td><b>Tagged</b></td>
</tr>
</thead>
<tbody class="striped">
{% for tag in tags %}
<tr>
<td>
{% if tag.is_annotated %}
<span title="Annotated" class="annotated">A</span>
{% else %}
<span title="Lightweight" class="lightweight">L</span>
{% endif %}
<a href="{{ url('tree', repository=repository[:-4], revision=tag.ref.shorthand) }}">{{ tag.ref.shorthand }}</a>
</td>
<td>
{% if tag.object.tagger %}
<span title="{{ tag.object.tagger.email }}">
{{ tag.object.tagger.name }}
</span>
{% endif %}
</td>
<td>
{% if tag.object.tagger %}
{{ commit_time(tag.object.tagger.time, tag.object.tagger.offset)|ago }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
|