From 00fc1f8d279ec1708e28dce24a0e816c99717f4c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 12 2016 20:46:35 +0000 Subject: Quit trying to figure out file moved --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index c41b341..8766827 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -317,14 +317,7 @@ {% endmacro %} {% if patch | hasattr('new_file_path') %} - {%- if patch.new_file_path == patch.old_file_path and patch.status != 'M' -%} - {{ lineschanged(True, True) }} -
- {{ patch.old_file_path }}
- {{ viewfilelink(patch.new_file_path) }} -
-
file moved
- {%- elif patch.status == 'D' -%} + {%- if patch.status == 'D' -%} {% set patchtype = "removed"%}
{{ viewfilelink(patch.new_file_path) }} {{ lineschanged(False, True) }} @@ -360,14 +353,6 @@
file changed
{%-endif-%} - {%- else -%} - {% set patchtype = "moved"%} - {{lineschanged(True, True)}} -
- {{patch.delta.old_file.path}}
- {{viewfilelink(patch.delta.new_file.path)}} -
-
file moved
{%- endif -%} {%- endif -%}