Echo Writes Code

repo.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
43
44
45
46
47
48
{% extends "_page.tera.html" %}

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

{% block content %}

{% if repository.copyright_notice %}
<aside class="notice">{{ repository.copyright_notice }}</aside>
{% endif %}

<article>
	<h1>{{ repository.name }}</h1>
	<nav class="repository-sections">
		<ul>
			<li><a href="{{ site.root }}{{ repository.branches_link }}">Branches</a></li>
			<li><a href="{{ site.root }}{{ repository.tags_link }}">Tags</a></li>
			<li><a href="{{ site.root }}{{ repository.history_link }}">History</a></li>
		</ul>
	</nav>
	<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">Name</th>
			</tr>
		</thead>
		<tbody>
		{% for t in repository.trees %}
		<tr class="flex_row">
			<td class="flex_static"><span class="badge-tree">tree</span></td>
			<td class="flex_1"><a href="{{ site.root }}{{ t.link }}">{{ t.name }}</a></td>
		</tr>
		{% endfor %}
		{% for b in repository.blobs %}
		<tr class="flex_row">
			<td class="flex_static"><span class="badge-blob">blob</span></td>
			<td class="flex_1"><a href="{{ site.root }}{{ b.link }}">{{ b.name }}</a></td>
		</tr>
		{% endfor %}
		</tbody>
	</table>
	{% if repository.readme_html %}
	<section class="markdown-panel">
		{{ repository.readme_html | safe }}
	</section>
	{% endif %}
</article>
{% endblock %}