diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 6099f35..330327c 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -426,15 +426,10 @@
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 }} @@ -448,8 +443,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) %} @@ -467,11 +462,10 @@ {% endif %} {% endif %} -
+ {% endif %}