Echo Writes Code

repository.tera.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% extends "page.tera.html" %}

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

{% block content %}
<article>
	<h1>Repository {{ repository.name }}</h1>
	<ul>
		{% for file in repository.files %}
			{% if file.kind == "Directory" %}
				<li><span class="badge color1">tree</span><a href="{{ file.link }}">{{ file.name }}</a></li>
			{% elif file.kind == "TextFile" %}
				<li><span class="badge color7">blob</span><a href="{{ file.link }}">{{ file.name }}</a></li>
			{% endif %}
		{% endfor %}
	</ul>
</article>
{% endblock %}