src/server/http/templates/commits.html
Ref: Size: 946 B
{% extends "repo_base.html" %}
{% block title %}Commits — {{ repo_name }} — {{ site_title }}{% endblock %}
{% block content %}
<h2>Commits:
<select onchange="location.href='/{{ repo_name }}/commits/' + this.value">
{% for b in branches %}
<option value="{{ b }}"{% if *b == ref_name %} selected{% endif %}>{{ b }}</option>
{% endfor %}
</select>
</h2>
{% if commits.is_empty() %}
<p style="color: #666;">No commits yet.</p>
{% else %}
<table>
<thead>
<tr>
<th>Hash</th>
<th>Message</th>
<th>Author</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{% for c in commits %}
<tr>
<td class="mono"><a href="/{{ repo_name }}/diff/{{ c.id }}">{{ c.short_id }}</a></td>
<td>{{ c.summary }}</td>
<td style="color: #666;">{{ c.author }}</td>
<td class="mono" style="color: #666;">{{ c.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}