/usr/lib/python2.7/dist-packages/klaus/templates/history.inc.html is in python-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 63 64 65 66 67 68 69 70 71 72 | {% macro pagination() %}
<div class=pagination>
{% if page %}
{% for n in previous_pages %}
{% if n is none %}
<span class=n>...</span>
{% else %}
<a href="{{ url_for('history', repo=repo.name, rev=rev, path=path)}}?page={{n}}" class=n>{{ n }}</a>
{% endif %}
{% endfor %}
{% endif %}
{% if more_commits %}
<a href="{{ url_for('history', repo=repo.name, rev=rev, path=path)}}?page={{page+1}}">»»</a>
{% elif page %}
<span>»»</span>
{% endif%}
</div>
<div class=clearfloat></div>
{% endmacro %}
<div class=history>
<h2>
{% if subpaths %}
History of
{% for name, subpath in subpaths %}
{{ name }}
{% if not loop.last %}
<span class=slash>/</span>
{% endif %}
{% endfor %}
{% else %}
Commit History
{% endif %}
<span>
@<a href="{{ url_for('index', repo=repo.name, rev=rev) }}">{{ rev }}</a>
</span>
{% if USE_SMARTHTTP %}
<code>git clone {{ url_for('index', repo=repo.name, _external=True) }}</code>
{% endif %}
{% if repo.cloneurl %}
<code>git clone {{ repo.cloneurl }}</code>
{% endif %}
</h2>
{{ pagination() }}
<ul>
{% for commit in history %}
<li>
<a class=commit href="{{ url_for('commit', repo=repo.name, rev=commit.id) }}">
<span class=line1>
<span>{{ commit.message|force_unicode|shorten_message }}</span>
</span>
<span class=line2>
<span>
{{ commit.author|force_unicode|extract_author_name }}
{% if commit.author != commit.committer %}
(commit: {{ commit.committer|force_unicode|extract_author_name }})
{% endif %}
</span>
<span title="{{ commit.commit_time|formattimestamp }}">
{{ commit.commit_time|timesince }}
</span>
</span>
<span class=clearfloat></span>
</a>
</li>
{% endfor %}
</ul>
</div>
{{ pagination() }}
|