From b2618e9404b84cc62d4becb02436233a0d53b375 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 25 Nov 2015 22:45:43 +0100 Subject: Rfactorization. Just a start... --- web/templates/home.html | 131 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 web/templates/home.html (limited to 'web/templates/home.html') diff --git a/web/templates/home.html b/web/templates/home.html new file mode 100644 index 00000000..86d96e94 --- /dev/null +++ b/web/templates/home.html @@ -0,0 +1,131 @@ +{% extends "layout.html" %} +{% block content %} +{% if feeds|count == 0 %} +
+

{{ _("You don't have any feeds.") }}

+

{{ _('Add some') }}, {{ _('or') }} {{ _('upload an OPML file.') }}

+
+{% else %} +
+
+ + + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} +
+ {% block messages %} + {{ super() }} + {% endblock %} +
+ {% endif %} + {% endwith %} +
+ + {% if articles | count != 0%} +
+ + + + + + + + + + + {% for article in articles %} + + + + + + + {% endfor %} + +
{{ _('Feed') }}{{ _('Article') }}{{ _('Date') }}
+ + {% if article.like %} + + {% else %} + + {% endif %} + {% if article.readed %} + + {% else %} + + {% if filter_ == 'all' %}{% endif %} + {% endif %} + + + {% if article.source.icon_url %} + + {% else %} + + {% endif %} + + {{ article.title|safe }} + {{ article.date|datetime }}
+
+ {% endif %} +
+
+
+ +{% endif %} +{% endblock %} -- cgit