projects
/
xnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
groups/directory: display a nice message when there is nobody in a group
[xnet]
/
xnet
/
groups
/
templates
/
groups
/
directory.html
diff --git
a/xnet/groups/templates/groups/directory.html
b/xnet/groups/templates/groups/directory.html
index
4dac21e
..
0218b4d
100644
(file)
--- a/
xnet/groups/templates/groups/directory.html
+++ b/
xnet/groups/templates/groups/directory.html
@@
-25,6
+25,7
@@
</div>
</form>
{% endif %}
</div>
</form>
{% endif %}
+ {% if memberships %}
<table class="table table-striped" id="directory">
<thead>
<tr>
<table class="table table-striped" id="directory">
<thead>
<tr>
@@
-39,7
+40,7
@@
<tr>
<td>
<span {% if memb.is_admin %}class="admin"{% endif %}>
<tr>
<td>
<span {% if memb.is_admin %}class="admin"{% endif %}>
- {{ memb.
x
user }}
+ {{ memb.user }}
</span>
</td>
<td>PROMO</td>
</span>
</td>
<td>PROMO</td>
@@
-49,7
+50,7
@@
</a>
{% if is_admin %}
<i class="icon-pencil"></i>
</a>
{% if is_admin %}
<i class="icon-pencil"></i>
- <a href="{% url 'groups:membership-delete' group.short memb.
x
user.username %}">
+ <a href="{% url 'groups:membership-delete' group.short memb.user.username %}">
<i class="icon-trash"></i>
</a>
{% endif %}
<i class="icon-trash"></i>
</a>
{% endif %}
@@
-58,5
+59,10
@@
{% endfor %}
</tbody>
</table>
{% endfor %}
</tbody>
</table>
+ {% else %}
+ <p class="pull-left">
+ Il n'y a personne dans ce groupe.
+ </p>
+ {% endif %}
</div>
{% endblock %}
</div>
{% endblock %}