{% extends "base.html" %} {% block content %} {% include "repo_nav.html" %} {% include "crumbs.html" %}

{{ subject }}

{%- if !body.is_empty() %}
{{ body }}
{%- endif %}
{%- for m in meta %}
{{ m.label }}
{%- if let Some(title) = m.title %}{{ m.value }}{% else %}{{ m.value }}{% endif %} {%- for (text, url) in m.links %}{% if !loop.first %} {% endif %}{{ text }}{% endfor -%}
{%- endfor %}
{%- if diff.too_many_files %}

{{ files.len() }}

Files changed

{%- else %}

+{{ added }} −{{ removed }}

{{ files.len() }} {% if files.len() == 1 %}file{% else %}files{% endif %} changed

{%- endif %}
Browse files Patch
{%- if let Some(url) = context_less %}−{% else %}−{% endif -%} Context {{ context }} {%- if let Some(url) = context_more %}+{% else %}+{% endif -%}
{%- if files.is_empty() %}

[No changes]

{%- else %}
    {%- for row in files %}
  1. {{ row.letter }} {% if let Some(from) = row.from %}{{ from }} → {% endif %}{{ row.path }} {%- if let Some((a, r)) = row.file.stat %} +{{ a }} −{{ r }} {%- else %} {%- endif %}
  2. {%- endfor %}
{%- endif %} {%- if diff.too_many_files %}

[Diff too large: {{ files.len() }} files] View patch

{%- else %} {%- for row in files %}
{{ row.letter }} {% if let Some(from) = row.from %}{{ from }} → {% endif %}{{ row.path }} {%- if let Some(url) = row.url %} View {%- endif %}
{%- if let Some((old_mode, new_mode)) = row.file.mode_change %}

Mode {{ old_mode }} → {{ new_mode }}

{%- endif %} {%- match row.file.body %} {%- when Body::Hunks with (hunks) %}
{%- for hunk in hunks %} {%- for line in hunk.lines %} {%- endfor %} {%- endfor %}
{{ hunk.header }}
{% if let Some(n) = line.old %}{{ n }}{% endif %}{% if let Some(n) = line.new %}{{ n }}{% endif %}{{ line.sign() }}{{ line.html|safe }}
{%- when Body::Unchanged %}

[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 %}
{%- endfor %} {%- endif %} {% endblock %}