groups/home: add a link to subscribe to a group
[xnet] / xnet / groups / templates / groups / home.html
... / ...
CommitLineData
1{% extends "groups/base.html" %}
2
3{% block content %}
4<div class="group-desc">
5 <h1>{{ group.name }}</h1>
6 {% if group.logo %}<img class="pull-right" src="{{ group.logo.url_70x70 }}" />{% endif %}
7 <div class="pull-left">
8 {% if group.web %}
9 <p><span>Web</span> : <a href="{{ group.web }}">{{ group.web }}</a></p>
10 {% endif %}
11 {% if user.is_authenticated %}
12 <p><span>Inscription</span> :
13 {% if not membership %}
14 Non inscrit.
15 <a href="{% url 'groups:membership-add' group.short user.username %}">
16 <i class="icon-plus"></i>M'inscrire
17 </a>
18 {% else %}
19 {{ membership.state }}.
20 <a href="{% url 'groups:membership-delete' group.short user.username %}">
21 <i class="icon-trash"></i>Me désinscrire
22 </a>
23 {% endif %}
24 </p>
25 {% endif %}
26 {% if group.description %}
27 <p class="pull-left">{{ group.description }}</p>
28 {% endif %}
29 </div>
30</div>
31{% endblock %}