{% extends "base.html" %} {% block content %}
{% if notify %}
{{ notify }}
{% endif %}

New Commit

Branch: {{ branch }}
{% if changes %}

Uncommitted Changes ({{ changes|length }})

{% for ch in changes %}
{% if ch.change_type == 'created' %} created {% elif ch.change_type == 'deleted' %} deleted {% else %} modified {% endif %} {{ ch.file_path.split('/')[-1] }}
{% if (ch.lines_added or 0) > 0 %}+{{ ch.lines_added }}{% endif %} {% if (ch.lines_removed or 0) > 0 %}-{{ ch.lines_removed }}{% endif %}
{% if ch.diff_content %}
            {%- for line in ch.diff_content.split('\n') -%}
              {%- if line.startswith('+') and not line.startswith('+++') -%}
                {{ line }}
              {%- elif line.startswith('-') and not line.startswith('---') -%}
                {{ line }}
              {%- elif line.startswith('@@') or line.startswith('---') or line.startswith('+++') -%}
                {{ line }}
              {%- elif line.strip() == '' -%}
                 
              {%- else -%}
                {{ line }}
              {%- endif -%}
            {%- endfor -%}
          
{% endif %}
{% endfor %}
{% else %}

No uncommitted changes to commit.

Changes will appear here when jung detects file modifications.

{% endif %}
{% endblock %}