diff --git a/pagure/templates/commit.html b/pagure/templates/commit.html index a1d9353..5817da2 100644 --- a/pagure/templates/commit.html +++ b/pagure/templates/commit.html @@ -121,7 +121,7 @@
- {{ newfilepath | unicode }}{{ oldfilepath | unicode }} + {{ newfilepath | unicode }}{{ oldfilepath | unicode }}
file renamed @@ -218,7 +218,7 @@ {% endif %}
- + {% if flags %}
- {{ changedlabel("file changed", "success")}} + {{ changedlabel("file added", "success")}} {{ lineschanged(True, False) }} {{ viewfilelinkbutton(patch.new_file.path) }} {% if linesadded != 0%} @@ -379,7 +378,7 @@ {%- else -%} {% set patchtype = "moved"%}
- {{ viewfilelink(patch.new_file.path) }}{{patch.old_file.path}} + {{ viewfilelink(patch.new_file.path) }}{{patch.old_file.path}}
{{ changedlabel("file renamed", "info")}} @@ -413,7 +412,7 @@ {{ viewfilelink(patch.delta.new_file.path) }}
- {{ changedlabel("file changed", "success")}} + {{ changedlabel("file added", "success")}} {{ lineschanged(True, False) }} {{ viewfilelinkbutton(patch.delta.new_file.path) }} {% if linesadded != 0%} @@ -437,7 +436,7 @@ {%- else -%} {% set patchtype = "moved"%}
- {{ viewfilelink(patch.delta.new_file.path) }}{{patch.delta.old_file.path}} + {{ viewfilelink(patch.delta.new_file.path) }}{{patch.delta.old_file.path}}
{{ changedlabel("file renamed", "info")}} @@ -481,7 +480,7 @@ {% block jscripts %} {{ super() }} - + @@ -517,7 +516,7 @@ diff2htmlUi.draw('#diff2html_'+$(this).attr("data-diffno"), {inputFormat: 'diff'}); {% endif %} diff2htmlUi.highlightCode('#diff2html_'+$(this).attr("data-diffno")); - + }); } }); diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 1339f3c..a22d916 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -2745,6 +2745,9 @@ class PagureFlaskRepotests(tests.Modeltests): output_text) self.assertIn('Merged by Alice Author', output_text) self.assertIn('Committed by Cecil Committer', output_text) + self.assertIn( + '
file added
', output_text) # View first commit - with the old URL scheme disabled - default output = self.app.get(