fedhub/templates/repo_blob.html
2020-04-21 20:41:42 -05:00

25 lines
780 B
HTML

{% extends "layout.html" %}
{% block content %}
<h1>{{ repo_name }}: {{ tree_name }}: {{ blob.name }}</h1>
{% if blob.lines %}
<div class="blob-contents">
<div class="left">
{% for _ in blob.lines %}
<a name="L{{ loop.index }}" />
<a href="#L{{ loop.index }}" title="permalink to line {{ loop.index }}">{{ loop.index }}</a>
<br />
{% endfor %}
</div>
<div class="right">
{% for line in blob.lines %}
<pre>{{ line }}</pre>
<br />
{% endfor %}
</div>
</pre>
{% else %}
This blob contains binary data.
{% endif %}
{% endblock %}