From d32edc3232580dbf8e602be36d5ef75a7092f67a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 12 Apr 2016 12:49:21 +0200 Subject: Removed links between current article and the previous/next articles. --- src/web/views/article.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/web/views') diff --git a/src/web/views/article.py b/src/web/views/article.py index 407345c3..fea4aa06 100644 --- a/src/web/views/article.py +++ b/src/web/views/article.py @@ -35,18 +35,9 @@ def article(article_id=None): Presents the content of an article. """ article = ArticleController(current_user.id).get(id=article_id) - previous_article = article.previous_article() - if previous_article is None: - previous_article = article.source.articles[0] - next_article = article.next_article() - if next_article is None: - next_article = article.source.articles[-1] - return render_template('article.html', head_titles=[clear_string(article.title)], - article=article, - previous_article=previous_article, - next_article=next_article) + article=article) @article_bp.route('/like/', methods=['GET']) -- cgit