affichage correct des teleservices sur l'accueil du portail
This commit is contained in:
parent
3da95cce0f
commit
961df1fd3d
|
@ -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>
|
||||
|
||||
|
|
Reference in New Issue