{% extends 'base.html' %} {% block title %} History of {% if path %}{{ path }} - {% endif %} {{ super() }} {% endblock %} {% block content %} {% include 'tree.inc.html' %} {# TODO: move logic into view #} {% set history = repo.history(commit_id, path, history_length+1, skip) %} {% set has_more_commits = history|length == history_length+1 %} {% macro pagination() %}
{% endmacro %}

{% if subpaths %} History of {% for name, subpath in subpaths %} {{ name }} {% if not loop.last %} / {% endif %} {% endfor %} {% else %} Commit History {% endif %} @{{ commit_id }} {% if USE_SMARTHTTP %} git clone {{ url_for('history', repo=repo.name, _external=True) }} {% endif %}

{{ pagination() }}
{{ pagination() }}
{% endblock %}