groups/directory: display a nice message when there is nobody in a group
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Tue, 28 May 2013 17:19:45 +0000 (19:19 +0200)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Tue, 28 May 2013 17:19:45 +0000 (19:19 +0200)
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
xnet/groups/templates/groups/directory.html

index 1b40a35..0218b4d 100644 (file)
@@ -25,6 +25,7 @@
         </div>
     </form>
     {% endif %}
+    {% if memberships %}
     <table class="table table-striped" id="directory">
         <thead>
             <tr>
         {% endfor %}
         </tbody>
     </table>
+    {% else %}
+        <p class="pull-left">
+            Il n'y a personne dans ce groupe.
+        </p>
+    {% endif %}
 </div>
 {% endblock %}