From 84fd92bf5af1073ff29cdf175e5aa1a46e3c9f82 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 2 May 2015 09:21:42 +0200 Subject: [PATCH] Categories [skip ci] --- resources/twig/categories/index.twig | 40 ++++++++++++++++++++++++++++ resources/twig/list/categories.twig | 38 ++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 resources/twig/categories/index.twig create mode 100644 resources/twig/list/categories.twig diff --git a/resources/twig/categories/index.twig b/resources/twig/categories/index.twig new file mode 100644 index 0000000000..82e98ac0e1 --- /dev/null +++ b/resources/twig/categories/index.twig @@ -0,0 +1,40 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }} +
+
+
+
+ Categories + + +
+
+ + +
+
+ + +
+ {% include 'list/categories.twig' %} +
+
+
+{% endblock %} +{% block styles %} + +{% endblock %} + +{% block scripts %} + + + + + +{% endblock %} \ No newline at end of file diff --git a/resources/twig/list/categories.twig b/resources/twig/list/categories.twig new file mode 100644 index 0000000000..605167cd17 --- /dev/null +++ b/resources/twig/list/categories.twig @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + {% for category in categories %} + + + + {% if category.lastActivity %} + + {% else %} + + {% endif %} + + {% endfor %} + +
 NameLast activity
 Without a category 
+
+ + +
+
+ {{ category.name }} + + {{category.lastActivity.format('jS F Y') }} + + Never +