ID: 83a0ec699dc2ebcc2358a6ee546d06ca1551cca2
75 lines
—
3K —
View raw
| {% extends "repository/repository.html" %}
{% block menu_log_class %}selected{% endblock %}
{% block content %}
<div>
<form action="{{ url('tree_change', repository=repository[:-4]) }}" method="post">
<select name="revision" id="revision">
<optgroup label="heads">
{% for h in heads %}
<option value="{{ h[11:] }}"
{{ "selected" if h[11:] == repository[2] }}
>{{ h[11:] }}{{ ' [HEAD]' if head_ref == h }}</option>
{% endfor %}
</optgroup>
<optgroup label="tags">
{% for t in tags %}
<option value="{{ t[10:] }}"
{{ "selected" if t[10:] == repository[2] }}
>{{ t[10:] }}</option>
{% endfor %}
</optgroup>
</select>
<input type="submit" value="switch" />
</form>
</div>
<div class="">
<table class="log">
<thead>
<tr>
<td class="author">Author</td>
<td class="id">ID</td>
<td class="message">Message</td>
<td class="time">Commit time</td>
</tr>
</thead>
<tbody class="striped">
{% for commit in commits %}
<tr>
<td title="{{ commit.author.email }}" class="author">
{% if commit.author.name|length > 0 %}
{{ commit.author.name }}
{% else %}
[anonymous]
{% endif %}
</td>
<td class="short_id" title="{{ commit.id }}">
{{ commit.short_id }}
</td>
<td class="message">
{% if commit.message|length <= 100 %}
{{ commit.message }}
{% else %}
<details>
<summary>{{ commit.message[:100] }} ...</summary>
<div class="fulltext">{{ commit.message }}</div>
</details>
{% endif %}
</td>
<td class="time" title="{{ commit_time(commit.commit_time, commit.commit_time_offset) }}">
{{ commit_time(commit.commit_time, commit.commit_time_offset)|ago }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
|