gestioCOF/templates/gestioncof/home.html
Guillaume Seguin 8e1bf7b705 Initial import
2012-06-27 23:28:35 +02:00

28 lines
1.1 KiB
HTML

{% 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 %}