Parent [>]
1{% extends "base.html" %}
2
3{% block title %}commits - {{ repo }}{% endblock %}
4{% block og_title %}commits - {{ repo }}{% endblock %}
5{% block og_description %}commit history for {{ repo }}{% endblock %}
6
7{% block breadcrumbs %}
8<ul>
9  <li><a href="{{ site.base_url }}/">{{ site.site_name }}</a></li>
10  <li><a href="{{ site.base_url }}/{{ repo }}">{{ repo }}</a></li>
11  <li>commits</li>
12</ul>
13{% endblock %}
14
15{% block content %}
16<h1>commits</h1>
17
18{% if commits.is_empty() %}
19<p>No commits.</p>
20{% else %}
21<div class="commit-graph-layout">
22  <div class="commit-graph-svg">{{ graph_svg|safe }}</div>
23  <div class="commit-graph-rows">
24    {% for commit in commits %}
25    <a href="{{ site.base_url }}/{{ repo }}/commits/{{ commit.sha }}" class="commit-graph-row" style="border-left: 3px solid {{ commit.color }}">
26      <span class="commit-message">{% for r in commit.refs %}<span class="commit-ref commit-ref-{{ r.kind }}">{{ r.name }}</span> {% endfor %}{{ commit.message }}</span>
27      <span class="commit-sha">{{ commit.sha[..8] }}</span>
28      <span class="commit-date">{{ commit.date }}</span>
29    </a>
30    {% endfor %}
31  </div>
32</div>
33<nav class="pagination">
34  {% if after.is_some() %}<a href="?"><span class="pagination-sym">&lt;</span> <span>newer</span></a>{% else %}<span></span>{% endif %}
35  {% if let Some(cursor) = next_cursor %}<a href="?after={{ cursor }}"><span>older</span> <span class="pagination-sym">&gt;</span></a>{% else %}<span></span>{% endif %}
36</nav>
37{% endif %}
38{% endblock %}