/usr/lib/python3/dist-packages/klaus/templates/view_blob.html is in python3-klaus 1.2.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | {% extends 'base.html' %}
{% block title %}
{{ path }} - {{ super() }}
{% endblock %}
{% block content %}
{% include 'tree.inc.html' %}
{% set raw_url = url_for('raw', repo=repo.name, rev=rev, path=path) %}
{% macro not_shown(reason) %}
<div>
({{ reason }} not shown — <a href="{{ raw_url }}">Download file</a>)
</div>
{% endmacro %}
<div class=blobview>
<h2>
{{ filename|force_unicode }}
<span>
@<a href="{{ url_for('commit', repo=repo.name, rev=rev) }}">{{ rev|shorten_sha1 }}</a>
—
{% if is_markup %}
{% if render_markup %}
<a href="?markup">view markup</a>
{% else %}
<a href="?">view rendered</a>
{% endif %}
·
{% endif %}
<a href="{{ raw_url }}">raw</a>
· <a href="{{ url_for('history', repo=repo.name, rev=rev, path=path) }}">history</a>
{% if not is_binary and not too_large %}
· <a href="{{ url_for('blame', repo=repo.name, rev=rev, path=path) }}">blame</a>
{% endif %}
</span>
</h2>
{% if is_binary %}
{% if is_image %}
<a href="{{ raw_url }}"><img src="{{ raw_url }}"></a>
{% else %}
{{ not_shown("Binary data") }}
{% endif %}
{% elif too_large %}
{{ not_shown("Large file") }}
{% else %}
{% autoescape false %}
{% if is_markup and render_markup %}
<div class=markup>{{ rendered_code }}</div>
{% else %}
{{ rendered_code }}
{% endif %}
{% endautoescape %}
{% endif %}
</div>
<script>
highlight_linenos({linksSelector: '.highlighttable .linenos a'});
</script>
{% endblock %}
|