Echo Writes Code

repository.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
{% extends "page.tera.html" %}

{% block title %}{{ repository.name }}{% endblock %}

{% block content %}
<article>
	<h1>{{ repository.name }}</h1>
	<table class="tree_list">
		<thead>
			<tr>
				<th scope="col">Type</th>
				<th scope="col">Name</th>
				<th scope="col">Hash</th>
			</tr>
		</thead>
		<tbody>
		{% for t in repository.trees %}
		<tr>
			<td><span class="badge color1">tree</span></td>
			<td><a href="{{ t.path_link }}">{{ t.name }}</a></td>
			<td><a href="{{ t.id_link }}">{{ t.id }}</a></td>
		</tr>
		{% endfor %}
		{% for b in repository.blobs %}
		<tr>
			<td><span class="badge color7">blob</span></td>
			<td><a href="{{ b.path_link }}">{{ b.name }}</a></td>
			<td><a href="{{ b.id_link }}">{{ b.id }}</a></td>
		</tr>
		{% endfor %}
		</tbody>
	</table>
</article>
{% endblock %}