groups/directory: display a nice message when there is nobody in a group
[xnet] / 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 %}