From ae4bb8ebcbf89ea6615e97df7c4efd5881631205 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 9 May 2015 13:52:37 +0200 Subject: Removed 'articles' view. --- pyaggr3g470r/templates/articles.html | 43 ------------------------------------ pyaggr3g470r/templates/feed.html | 2 +- pyaggr3g470r/templates/home.html | 2 -- 3 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 pyaggr3g470r/templates/articles.html (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html deleted file mode 100644 index 383c28a4..00000000 --- a/pyaggr3g470r/templates/articles.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "layout.html" %} -{% block content %} -
-
-

{{ feed.title|safe }}

- - - {% if nb_articles == 10**9 %} -

{{ feed.articles.all()|count }} articles.

- {% else %} -

Last {{ feed.articles.all()|count }} articles. See all articles.

- {% endif %} -
- {% if feed.articles.all()|count == 0 %} -

No articles.

- {% else %} - {% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %} -
- {% for n in range(number, number+3) %} -
- {% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title|safe }} - {% if feed.articles[n].readed %}

{% else %}{% endif %} -
{{ feed.articles[n].date }}
-
- {% endfor %} -
- {% endfor %} - {% if feed.articles.all()|length % 3 != 0 %} -
- {% for n in range(feed.articles.all()|length-(feed.articles.all()|length % 3), feed.articles.all()|length) %} -
- {% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title|safe }} - {% if feed.articles[n].readed %}

{% else %}{% endif %} -
{{ feed.articles[n].date }}
-
- {% endfor %} -
- {% endif %} - {% endif %} -
-{% endblock %} diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index c888e04f..09a064e5 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -9,7 +9,7 @@

- {{ _('This feed contains') }} {{ feed.articles.all()|count }} {{ _('articles') }}.
+ {{ _('This feed contains') }} {{ feed.articles.all()|count }} {{ _('articles') }}.
{{ _('Address of the feed') }}: {{ feed.link }}
{% if feed.site_link != "" %} {{ _('Address of the site') }}: {{ feed.site_link }}
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 82f23dfa..e5db30e1 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -29,7 +29,6 @@

  • - @@ -47,7 +46,6 @@
  • - -- cgit