From 3c75e4bd17ed238ca0a38e858ee3013ddc2210c0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 28 Nov 2014 21:49:53 +0100 Subject: Added a button to delete duplicate articles. --- pyaggr3g470r/templates/duplicates.html | 4 ++-- pyaggr3g470r/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyaggr3g470r/templates/duplicates.html b/pyaggr3g470r/templates/duplicates.html index 4b8a7c44..a7eff2d0 100644 --- a/pyaggr3g470r/templates/duplicates.html +++ b/pyaggr3g470r/templates/duplicates.html @@ -16,8 +16,8 @@ {% for pair in duplicates %} {{ loop.index }} - {{ pair[0].title }} - {{ pair[1].title }} +  {{ pair[0].title }} +  {{ pair[1].title }} {% endfor %} diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 7e97560b..aec5c976 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -341,7 +341,7 @@ def article(article_id=None): article=article, previous_article=previous_article, next_article=next_article) flash(gettext("This article do not exist."), 'warning') - return redirect(redirect_url()) + return redirect(url_for('home')) @app.route('/mark_as/', methods=['GET']) @@ -398,7 +398,7 @@ def delete(article_id=None): except: pass flash(gettext('Article') + ' ' + article.title + ' ' + gettext('deleted.'), 'success') - return redirect(url_for('home')) + return redirect(redirect_url()) else: flash(gettext('This article do not exist.'), 'danger') return redirect(url_for('home')) -- cgit