gestioCOF/templates/gestioncof/home.html

29 lines
1.1 KiB
HTML
Raw Normal View History

2012-06-27 23:28:35 +02:00
{% extends "base_title.html" %}
{% block realcontent %}
<h2>Bienvenue, {% if user.first_name %}{{ user.first_name }}{% else %}<tt>{{ user.username }}</tt>{% endif %}</h2>
{% if events %}
<h3>Événements</h3>
<ul>
{% for event in events %}
<li><a href="{% url gestioncof.views.event event.id %}">{{ event.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if surveys %}
<h3>Sondages</h3>
<ul>
{% for survey in surveys %}
<li><a href="{% url gestioncof.views.survey survey.id %}">{{ survey.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
<h3>Divers</h3>
<ul>
{% if user.is_buro or user.is_staff %}
<li><a href="{% url admin:index %}">Administration</a></li>
{% endif %}
<li><a href="{% url gestioncof.views.logout %}">Se déconnecter</a></li>
</ul>
{% endblock %}