summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Noel <thomas@fsb.test.entrouvert.org>2014-12-18 14:14:50 (GMT)
committerThomas Noel <thomas@fsb.test.entrouvert.org>2014-12-18 14:14:50 (GMT)
commit961df1fd3dea6678dd59700e949f0b9c154ecf9e (patch)
tree42adabf7c322eceb0ab7c56062ecf07dd1dec326
parent3da95cce0f2baf03f8765a48c0a83d98e84034c8 (diff)
downloadfontenay-sous-bois-961df1fd3dea6678dd59700e949f0b9c154ecf9e.zip
fontenay-sous-bois-961df1fd3dea6678dd59700e949f0b9c154ecf9e.tar.gz
fontenay-sous-bois-961df1fd3dea6678dd59700e949f0b9c154ecf9e.tar.bz2
affichage correct des teleservices sur l'accueil du portail
-rw-r--r--portail-citoyen/templates/blurps/liste-des-teleservices.html20
1 files changed, 13 insertions, 7 deletions
diff --git a/portail-citoyen/templates/blurps/liste-des-teleservices.html b/portail-citoyen/templates/blurps/liste-des-teleservices.html
index 3d25b50..aa1cb14 100644
--- a/portail-citoyen/templates/blurps/liste-des-teleservices.html
+++ b/portail-citoyen/templates/blurps/liste-des-teleservices.html
@@ -1,14 +1,20 @@
{% load i18n %}
-<ul>
{% if user.is_authenticated %}
-{% for service in teleservices %}
-<li><strong><a href="{{ service.url }}tryauth" title="{{ service.title }}">{{ service.title }}</a></strong></li>
-{% endfor %}
+{% regroup teleservices by category as category_list %}
{% else %}
-{% for service in teleservices_publics %}
-<li><strong><a href="{{ service.url }}tryauth" title="{{ service.title }}">{{ service.title }}</a></strong></li>
-{% endfor %}
+{% regroup teleservices_publics by category as category_list %}
{% endif %}
+
+<ul>
+{% for category in category_list %}
+<li><h1>{{ category.grouper }}</h1>
+<ul>
+{% for teleservice in category.list %}
+<li><a href="{{ teleservice.url }}tryauth">{{ teleservice.title }}</a></li>
+{% endfor %}
+</ul>
+</li>
+{% endfor %}
</ul>