{% extends 'base.html' %} {% block head %} {% endblock %} {% block content %}

Review Changes

Module: {{ module_name }}

{% if file_path %}
{{ file_path }}
{% endif %} {% if diff %}
Changes Preview
{% for line in diff.split('\n') %} {% if line.startswith('+++') or line.startswith('---') or line.startswith('@@') %}
{{ line }}
{% elif line.startswith('+') %}
{{ line }}
{% elif line.startswith('-') %}
{{ line }}
{% else %}
{{ line }}
{% endif %} {% endfor %}
Original
{% for line in diff.split('\n') %} {% if line.startswith('---') or line.startswith('@@') %}
{{ line }}
{% elif line.startswith('-') and not line.startswith('---') %}
{{ line[1:] }}
{% elif line.startswith('+') and not line.startswith('+++') %}
 
{% elif not line.startswith('+++') %}
{{ line[1:] if line.startswith(' ') else line }}
{% endif %} {% endfor %}
Modified
{% for line in diff.split('\n') %} {% if line.startswith('+++') or line.startswith('@@') %}
{{ line }}
{% elif line.startswith('+') and not line.startswith('+++') %}
{{ line[1:] }}
{% elif line.startswith('-') and not line.startswith('---') %}
 
{% elif not line.startswith('---') %}
{{ line[1:] if line.startswith(' ') else line }}
{% endif %} {% endfor %}
Cancel
{% else %}

No Changes Detected

The source file content is identical to your edits.

Back to Editor
{% endif %} {% endblock %} {% block scripts %} {% endblock %}