diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index cdf32dd..aae7b0e 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -303,18 +303,21 @@
- {% if authenticated and pull_request %} -
- {% endif %} - - {% if diff %} - {% for patch in diff %} -
+ {% if diff %}
-

+

Changes summary:
+
+
+ + + + + + + {% for patch in diff %} + + + + + {% endfor %} + +
{%- if patch | hasattr('new_file_path') -%} {%- if patch.new_file_path == patch.old_file_path -%} {{ patch.new_file_path }} @@ -328,7 +331,8 @@ {{ patch.delta.new_file.path }} (Renamed from "{{ patch.delta.old_file.path }}") {%- endif -%} {%- endif -%} - + {% if patch | hasattr('additions') %} {# Version of pygit2 -0.21.4 -- F21/EL7 #} {% if (patch.additions + patch.deletions) %} @@ -346,9 +350,44 @@ {% endif %} {% endif %} +
+
+
+ {% endif %} + + + {% if authenticated and pull_request %} + + {% endif %} + + {% if diff %} + {% for patch in diff %} +
+
+
+
+ {%- if patch | hasattr('new_file_path') -%} + {%- if patch.new_file_path == patch.old_file_path -%} + {{ patch.new_file_path }} + {%- else -%} + {{ patch.new_file_path }} (Renamed from "{{ patch.old_file_path }}") + {%- endif -%} + {%- elif patch | hasattr('delta') -%} + {%- if patch.delta.new_file.path == patch.delta.old_file.path -%} + {{ patch.delta.new_file.path }} + {%- else -%} + {{ patch.delta.new_file.path }} (Renamed from "{{ patch.delta.old_file.path }}") + {%- endif -%} + {%- endif -%} {% if pull_request %} - View {% endif %} +
{% autoescape false %}