Echo Writes Code

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

{% block title %}{{ blob.path }} | {{ blob.repository_name }}{% endblock %}

{% block content %}
<article>
	<div class="blob-heading">
		<h1>{{ blob.name }}</h1>
		{% if blob.markdown %}
		<aside id="markdown-view-switcher">
			<label for="markdown-view-enabled">Rendered View</label>
			<input id="markdown-view-enabled" type="checkbox" checked>
		</aside>
		{% endif %}
	</div>
	<div class="blob-body">
		{% if blob.markdown %}
		<section class="markdown-panel">
			{{ blob.markdown | safe }}
		</section>
		{% endif %}
		<section class="blob {% if blob.markdown %}hidden{% endif %}">
			<div class="blob_gutter">{% for line in blob.lines %}<div class="blob_gutter_line">{{ line }}</div>{% endfor %}</div>
			<pre class="blob_text" role="code">{{ blob.text }}</pre>
		</section>
	</div>
</article>
{% endblock %}