From 2c0e17cb977a1e8782799b337df8b1583d019906 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 12 Oct 2015 22:36:01 +0200 Subject: bootstraping react --- src/web/templates/categories.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/web/templates/categories.html (limited to 'src/web/templates/categories.html') diff --git a/src/web/templates/categories.html b/src/web/templates/categories.html new file mode 100644 index 00000000..a61cc4b2 --- /dev/null +++ b/src/web/templates/categories.html @@ -0,0 +1,36 @@ +{% extends "layout.html" %} +{% block content %} +
+

{{ _("You have %(categories)d categories · Add a %(start_link)scategory%(end_link)s", categories=categories|count, start_link=("" % url_for("category.form"))|safe, end_link=""|safe) }}

+ {% if categories|count == 0 %} +

{{_("No category")}}

+ {% else %} +
+ + + + + + + + + + + + {% for category in categories|sort(attribute="name") %} + + + + + + + + {% endfor %} + +
#{{ _('Name') }}{{ _('Feeds') }}{{ _('Articles') }}{{ _('Actions') }}
{{ loop.index }}{{ category.name }}{{ feeds_count.get(category.id, 0) }}( {{ unread_article_count.get(category.id, 0) }} ) {{ article_count.get(category.id, 0) }} + + +
+
+ {% endif %} +{% endblock %} -- cgit