Echo Writes Code

history.tera.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "_page.tera.html" %}

{% block title %}History | {{ history.commit }} | {{ history.repository_name }}{% endblock %}

{% block content %}
<article>
	<h1>History</h1>
	<div class="flex_row">
		<table class="tree_list flex_1">
			<thead>
				<tr class="flex_row">
					<th scope="col" class="flex_static">Type</th>
					<th scope="col" class="flex_1">Hash</th>
				</tr>
			</thead>
			<tbody>
			{% for c in history.commits %}
			<tr class="flex_row">
				<td class="flex_static"><span class="badge-commit">commit</span></td>
				<td class="flex_static large_screen commit-hash"><a href="{{ site.root }}{{ c.link }}">{{ c.hash }}</a></td>
				<td class="flex_static small_screen commit-hash"><a href="{{ site.root }}{{ c.link }}">{{ c.short_hash }}</a></td>
				<td class="flex_1 large_screen">{{ c.short_message | truncate(length=80) }}</td>
				<td class="flex_1 small_screen">{{ c.short_message | truncate(length=20) }}</td>
			</tr>
			{% endfor %}
			</tbody>
		</table>
	</div>
	<nav class="pagination">
		{% if history.previous_page %}
		<span class="previous-page"><a href="{{ site.root }}{{ history.previous_page }}"><span aria-hidden="true">« </span>Previous Page</a></span>
		{% else %}
		<span class="previous-page"><a href="" aria-current="page">First Page</a></span>
		{% endif %}
		<span aria-hidden="true">•</span>
		{% if history.next_page %}
		<span class="next-page"><a href="{{ site.root }}{{ history.next_page }}">Next Page<span aria-hidden="true"> »</span></a></span>
		{% else %}
		<span class="next-page"><a href="" aria-current="page">Last Page</a></span>
		{% endif %}
	</nav>
{% endblock %}