From 60c648f1e92d7ea6fb6dea51a27b940f2062f882 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 28 2015 09:35:23 +0000 Subject: Make the code a little prettier to read --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index e980865..9ed3346 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -253,11 +253,13 @@ {% for patch in diff %}
-

{% if patch.new_file_path == patch.old_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 %}

+ {%- endif -%} +
  • {% if (patch.additions + patch.deletions) %}