Skip to main content

max / makenotwork

1.7 KB · 48 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}Commits - {{ repo_name }} - Git - Makenotwork{% endblock %}
4 {% block body_attrs %} class="{{ crate::shell::measure(crate::shell::Measure::Wide) }}"{% endblock %}
5
6
7 {% block content %}
8 {% include "partials/site_header.html" %}
9
10 <h1 class="git-repo-name">
11 <a href="/git/{{ owner }}">{{ owner }}</a>
12 <span class="sep">/</span>
13 <a href="/git/{{ owner }}/{{ repo_name }}">{{ repo_name }}</a>
14 </h1>
15
16 {% include "partials/git_nav.html" %}
17
18 <ul class="git-commit-list">
19 {% for commit in commits %}
20 <li class="git-commit">
21 <p class="git-commit-message">
22 <span class="summary">{{ commit.summary }}</span>
23 </p>
24 <div class="git-commit-meta">
25 <span>{{ commit.author_name }}</span>
26 <span>{{ commit.time_formatted }}</span>
27 <span class="git-commit-oid">
28 <a href="/git/{{ owner }}/{{ repo_name }}/commit/{{ commit.oid }}">{{ commit.short_oid }}</a>
29 </span>
30 {% if let Some(n) = annotated.get(commit.oid) %}
31 <a class="git-note-badge" href="/git/{{ owner }}/{{ repo_name }}/commit/{{ commit.oid }}#notes">{% if **n == 1 %}note{% else %}{{ n }} notes{% endif %}</a>
32 {% endif %}
33 </div>
34 </li>
35 {% endfor %}
36 </ul>
37
38 <div class="git-pagination">
39 {% if page > 1 %}
40 <a href="/git/{{ owner }}/{{ repo_name }}/commits/{{ current_ref }}?page={{ page - 1 }}">Newer</a>
41 {% endif %}
42 {% if has_more %}
43 <a href="/git/{{ owner }}/{{ repo_name }}/commits/{{ current_ref }}?page={{ page + 1 }}">Older</a>
44 {% endif %}
45 </div>
46
47 {% endblock %}
48