{% extends 'allura:templates/repo/repo_master.html' %} {% do g.register_forge_css('css/forge/hilite.css') %} {% block title %} {{c.project.name}} / {{c.app.config.options.mount_label}} / Diff of {{h.really_unicode(b.path())}} {% endblock %} {% block header %}Diff of {{b.path()}} {% if a %} {{a.commit.shorthand_id()}} {% else %} [000000] {% endif %} .. {{b.commit.shorthand_id()}} {% endblock %} {% block content %} {% if a.has_image_view and b.has_image_view %}
{{h.text.truncate(a._commit._id, 10)}} {{h.text.truncate(b._commit._id, 10)}}
{% else %}

{{h.really_unicode(a.filename) or h.html.literal(' ')}} {% if session.diformat == 'sidebyside' %} {% set switch_url = request.url.replace('&diformat=sidebyside', '') + '&diformat=regular' %} {% set switch_text = 'regular' %} {% else %} {% set switch_url = request.url.replace('&diformat=regular', '') + '&diformat=sidebyside' %} {% set switch_text = 'side-by-side' %} {% endif %} Switch to {{ switch_text }} view

{% if session.diformat == 'sidebyside' %} {{diff|safe}} {% else %} {{g.highlight(diff, lexer='diff')}} {% endif %}
{% endif %} {% endblock %} {% block extra_css %} {% endblock %}