Skip to content
Snippets Groups Projects
Commit 0835a24a authored by Moreau Elise's avatar Moreau Elise
Browse files

add members list in a group view

parent 0fcf35e3
No related branches found
No related tags found
Loading
...@@ -32,17 +32,23 @@ ...@@ -32,17 +32,23 @@
</div> </div>
</div> </div>
</div> </div>
<div class="ui relaxed divided list"> <div id="members">
<h2> Members </h2> <h2> Members </h2>
{% for user in group.users %} <div class="ui relaxed divided list" id="members_list" style="overflow:scroll">
<div class="item"> {% for user in group.getUsers %}
<img class="ui avatar image" src="/assets/img/default-avatar.png"></i> <div class="item">
<div class="content"> <img class="ui avatar image" src="/assets/img/default-avatar.png"></i>
<a href="users/{{user.id}}" class="header">@{{user.username}}</a> <div class="content">
<a href="/users/{{user.id}}" class="header">@{{user.username}}</a>
</div>
{% if group.checkAdmin(session.userId) %}
<form action="/groups/{{group.getId}}/users/{{user.id}}/delete" method="post" class="right floated content">
<button class="ui button tiny" id="" style="margin-right:10px; padding-right:5px; padding-left:10px"><i class="user times icon"></i></button>
</form>
{% endif %}
</div> </div>
{% endfor %}
</div> </div>
{% endfor %}
{% if group.checkAdmin(session.userId) %} {% if group.checkAdmin(session.userId) %}
<div class="ui modal" id="modal_add_user"> <div class="ui modal" id="modal_add_user">
<div class="header"> <div class="header">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment