{% extends 'allura:templates/repo/repo_master.html' %} {% block title %} {{c.project.name}} / {{c.app.config.options.mount_label}} / Commit {{commit.shorthand_id()}} {% endblock %} {% block header -%} Commit {{commit.shorthand_id()}} {{commit_labels(commit)}} {%- endblock %} {% block actions %} History {% endblock %} {% block extra_js %} {% endblock %} {% block content %} {{ clone_info(c.app.repo) }} {{c.revision_widget.display(value=commit, prev=prev, next=next)}} {{c.page_list.display(page=page, limit=limit, count=count)}} {% for type, file in artifacts %} {% endfor %}
{{ type }} {% if type == 'copied' %} {{ '%s -> %s' % (h.really_unicode(file.old), h.really_unicode(file.new)) }} {% else %} {{h.really_unicode(file)}} {% endif %}
{% for type, file in artifacts %}
{% if type in ('added', 'changed') %} {{h.really_unicode(file)}} {% if prev %} Diff {% endif %} {% elif type == 'removed' %} {{h.really_unicode(file)}} {% elif type == 'copied' %} {{h.really_unicode(file.old)}} to {{h.really_unicode(file.new)}} {% endif %}
{% if type == 'removed' %} File was removed. {% elif type == 'copied' %} {% if file.ratio == 1 %} File was renamed. {% else %} {{g.highlight(file.diff, lexer='diff')}} {% endif %} {% else %} {% if prev %} Loading... {% endif %} {% endif %}
{% endfor %} {{c.page_list.display(page=page, limit=limit, count=count)}} {% endblock %}