aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates/git_browse/blob.html
blob: 853c0348db931d1bc907507c5b5836b7804e8d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% extends "git_browse/base.html" %}

{% block gitbrowse %} {% if contents %}
    <h3>Blob sha1 hash</h3>
    {{ hash }}<br />
    <h3>Size</h3> 
    {{ size|filesizeformat }}<br />
    <h3>Raw contents</h3>
    {% if pretty_contents %}
        <pre class="large">{{ pretty_diff }}</pre>
    {% else %}
        {% if contents %}
        <pre class="large">{{ contents|escape|wordwrap:80 }}</pre>
        {% else %}No contents{% endif %}
    {% endif %}
{% else %}
    <h3>No such object: {{ hash }}</h3> 
{% endif %} {% endblock %}