| 1 | {% extends "base.html" %} |
| 2 | |
| 3 | {% block title %}commits - {{ owner }}/{{ repo }} - {{ site_name }}{% endblock %} |
| 4 | |
| 5 | {% block body %} |
| 6 | <div class="breadcrumb"> |
| 7 | <a href="/{{ owner }}">{{ owner }}</a> |
| 8 | <span class="sep">/</span> |
| 9 | <a href="/{{ owner }}/{{ repo }}">{{ repo }}</a> |
| 10 | <span class="sep">/</span> |
| 11 | <span style="color:#888;">commits</span> |
| 12 | </div> |
| 13 | |
| 14 | <div class="tab-bar"> |
| 15 | <a href="/{{ owner }}/{{ repo }}">files</a> |
| 16 | <a class="active" href="/{{ owner }}/{{ repo }}/commits/{{ branch }}">commits</a> |
| 17 | </div> |
| 18 | |
| 19 | <div class="section"> |
| 20 | {% if commits.is_empty() %} |
| 21 | <p class="empty">no commits yet</p> |
| 22 | {% else %} |
| 23 | <ul class="commit-list"> |
| 24 | {% for c in commits %} |
| 25 | <li> |
| 26 | <div class="commit-msg">{{ c.subject }}</div> |
| 27 | <div class="commit-meta"> |
| 28 | <span class="commit-hash">{{ c.short_hash }}</span> |
| 29 | · {{ c.author }} · {{ c.date }} |
| 30 | </div> |
| 31 | </li> |
| 32 | {% endfor %} |
| 33 | </ul> |
| 34 | {% endif %} |
| 35 | </div> |
| 36 | |
| 37 | <div class="pagination"> |
| 38 | {% if page > 1 %} |
| 39 | <a href="/{{ owner }}/{{ repo }}/commits/{{ branch }}?page={{ page - 1 }}">← newer</a> |
| 40 | {% endif %} |
| 41 | {% if has_next %} |
| 42 | <a href="/{{ owner }}/{{ repo }}/commits/{{ branch }}?page={{ page + 1 }}">older →</a> |
| 43 | {% endif %} |
| 44 | </div> |
| 45 | {% endblock %} |