{% extends "base.html" %} {% block content %}
{{ commit.id }}
{{ ch.file_path }}
{{ ch.change_type }}
{%- for line in ch.original_diff.split('\n') -%}
{%- if line.startswith('+') and not line.startswith('+++') -%}
{{ line }}
{%- elif line.startswith('-') and not line.startswith('---') -%}
{{ line }}
{%- elif line.startswith('@@') -%}
{{ line }}
{%- elif line.startswith('---') or line.startswith('+++') -%}
{{ line }}
{%- elif line.strip() == '' -%}
{%- else -%}
{{ line }}
{%- endif -%}
{%- endfor -%}
{%- for line in ch.current_diff.split('\n') -%}
{%- if line.startswith('+') and not line.startswith('+++') -%}
{{ line }}
{%- elif line.startswith('-') and not line.startswith('---') -%}
{{ line }}
{%- elif line.startswith('@@') -%}
{{ line }}
{%- elif line.startswith('---') or line.startswith('+++') -%}
{{ line }}
{%- elif line.strip() == '' -%}
{%- else -%}
{{ line }}
{%- endif -%}
{%- endfor -%}
{% else %}