From 6ce4e978c9faf739706a1199d1d53973785bad57 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 12 Jun 2015 14:29:47 +0200 Subject: No need to display the /duplicates page when there is no duplicate. --- pyaggr3g470r/templates/duplicates.html | 54 ++++++++++++++++------------------ 1 file changed, 25 insertions(+), 29 deletions(-) (limited to 'pyaggr3g470r/templates/duplicates.html') diff --git a/pyaggr3g470r/templates/duplicates.html b/pyaggr3g470r/templates/duplicates.html index 4d7ac650..32fbdf9a 100644 --- a/pyaggr3g470r/templates/duplicates.html +++ b/pyaggr3g470r/templates/duplicates.html @@ -1,34 +1,30 @@ {% extends "layout.html" %} {% block content %}
- {% if duplicates != [] %} -

{{ _('Duplicates in the feed') }} {{ feed.title }}.

-

- - - - - - - - - - {% for pair in duplicates %} - - - - - - {% endfor %} - -
# - {{ _('Delete all in this column') }} - - {{ _('Delete all in this column') }} -
{{ loop.index }} {{ pair[0].title }} ({{ pair[0].retrieved_date }}) {{ pair[1].title }} ({{ pair[1].retrieved_date }})
-
- {% else %} -

{{ _('No duplicates in the feed') }} {{ feed.title }}.

- {% endif %} +

{{ _('Duplicates in the feed') }} {{ feed.title }}.

+

+ + + + + + + + + + {% for pair in duplicates %} + + + + + + {% endfor %} + +
# + {{ _('Delete all in this column') }} + + {{ _('Delete all in this column') }} +
{{ loop.index }} {{ pair[0].title }} ({{ pair[0].retrieved_date }}) {{ pair[1].title }} ({{ pair[1].retrieved_date }})
+
{% endblock %} -- cgit