diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index f7d4047..6c6679f 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -318,15 +318,31 @@ {% if patch | hasattr('new_file_path') %} {%- if patch.new_file_path == patch.old_file_path -%} - {{ viewfilelink(patch.new_file_path)}} {{lineschanged(True, True)}} - {%- else -%} - {{lineschanged(True, True)}} + {{ lineschanged(True, True) }}
{{patch.old_file_path}}
- {{viewfilelink(patch.new_file_path)}} + {{ viewfilelink(patch.new_file_path) }} +
+
file moved
+ {%- elif patch.status == 'D' -%} + {% set patchtype = "removed"%} +
+ {{ viewfilelink(patch.new_file_path) }} {{ lineschanged(False, True) }}
file removed
- {%- endif -%} + {%-elif patch.status == 'A' -%} + {% set patchtype = "added"%} +
+ {{ viewfilelink(patch.new_file_path) }} {{ lineschanged(True, False) }} +
+
file added
+ {%-elif patch.status == 'M' -%} + {% set patchtype = "changed"%} +
+ {{ viewfilelink(patch.new_file_path) }} {{ lineschanged(True, True) }} +
+
file changed
+ {%-endif-%} {%- elif patch | hasattr('delta') -%} {%- if patch.delta.new_file.path == patch.delta.old_file.path -%} {%- if patch.delta.new_file.mode == 0 and patch.delta.old_file.mode == 33188 -%}