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
{% 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="{{ c.link }}">{{ c.hash }}</a></td>
				<td class="flex_static small_screen commit-hash"><a href="{{ 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 %}
		<div><a href="{{ history.previous_page }}">Previous Page</a></div>
		{% endif %}
		{% if history.next_page %}
		<div><a href="{{ history.next_page }}">Next Page</a></div>
		{% endif %}
	</nav>
{% endblock %}