diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-28 21:19:27 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-28 21:19:27 +0100 |
commit | c0fea7d60800af8f31c2a568b365b42ad01daf14 (patch) | |
tree | 7d9a4913e11b6052011160322ea70fcad73054a8 /pyaggr3g470r/templates | |
parent | Only compare published date and title of articles. (diff) | |
download | newspipe-c0fea7d60800af8f31c2a568b365b42ad01daf14.tar.gz newspipe-c0fea7d60800af8f31c2a568b365b42ad01daf14.tar.bz2 newspipe-c0fea7d60800af8f31c2a568b365b42ad01daf14.zip |
Improved layout of the template duplicate.html.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/duplicates.html | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/pyaggr3g470r/templates/duplicates.html b/pyaggr3g470r/templates/duplicates.html index 548f845d..4b8a7c44 100644 --- a/pyaggr3g470r/templates/duplicates.html +++ b/pyaggr3g470r/templates/duplicates.html @@ -2,13 +2,29 @@ {% block content %} <div class="container"> {% if duplicates != [] %} - <ul class="list-group"> - {% for pair in duplicates %} - <li><a href="/article/{{ pair[0].id }}">{{ pair[0].title }}</a> - <a href="/article/{{ pair[1].id }}">{{ pair[1].title }}</a></li> - {% endfor %} - </ul> + <p><h1>{{ _('Duplicates in the feed') }} <a href="/feed/{{ feed.id }}">{{ feed.title }}</a>.</h1><p> + <div class="table-responsive"> + <table class="table table-striped"> + <thead> + <tr> + <th>#</th> + <th></th> + <th></th> + </tr> + </thead> + <tbody> + {% for pair in duplicates %} + <tr> + <td>{{ loop.index }}</td> + <td><a href="/article/{{ pair[0].id }}">{{ pair[0].title }}</a></td> + <td><a href="/article/{{ pair[1].id }}">{{ pair[1].title }}</a></td> + </tr> + {% endfor %} + </tobdy> + </table> + </div> {% else %} - <p>{{ _('No duplicates.') }}<p> + <p><h1>{{ _('No duplicates in the feed') }} <a href="/feed/{{ feed.id }}">{{ feed.title }}</a>.</h1><p> {% endif %} </div><!-- /.container --> {% endblock %} |