{% extends "base.html" %}
{% block content %}
{% include "repo_nav.html" %}
{% include "crumbs.html" %}
{{ subject }}
{%- if !body.is_empty() %}
{{ body }}
{%- endif %}
{{ files.len() }}
Files changed
{%- else %}+{{ added }} −{{ removed }}
{{ files.len() }} {% if files.len() == 1 %}file{% else %}files{% endif %} changed
{%- endif %}[No changes]
{%- else %}[Diff too large: {{ files.len() }} files] View patch
{%- else %} {%- for row in files %}Mode {{ old_mode }} → {{ new_mode }}
{%- endif %} {%- match row.file.body %} {%- when Body::Hunks with (hunks) %}| {{ hunk.header }} | |||
| {% if let Some(n) = line.old %}{{ n }}{% endif %} | {% if let Some(n) = line.new %}{{ n }}{% endif %} | {{ line.sign() }} | {{ line.html|safe }} |
[No content changes]
{%- when Body::Binary %}[Binary file]
{%- when Body::Submodule with { old, new } %}Submodule {% if let Some(o) = old %}{{ o.to_hex_with_len(7) }}{% else %}—{% endif %} → {% if let Some(n) = new %}{{ n.to_hex_with_len(7) }}{% else %}—{% endif %}
{%- when Body::TooLarge %}[Diff too large]{% if let Some(url) = row.url %} View file{% endif %}
{%- when Body::NotShown %} {%- endmatch %}