Commit 1215fde1 authored by Moreau Elise's avatar Moreau Elise
Browse files

add route to group's messages in group view

parent 01c24167
......@@ -12,11 +12,18 @@
<div class="description" id="description">
<p>{{group.description}}</p>
</div>
{% if session.userId %}
<a href="/groups/{{group.getId}}/messages">Messages</a>
{% endif %}
<div class="extra content" id="icons_users">
<div class="ui small basic icon buttons">
{% if session.userId %}
<button class="ui button">
<a href="/groups/{{group.getId}}/messages"><i class="envelope icon"></i></a>
</button>
{% endif %}
{% if session.userId and group.hasUser(session.userId) == false %}
<form action="/groups/{{group.getId}}/users/add" method="post">
<button type="submit" class="ui button"><i class="user plus icon"></i></button>
</form>
{% endif %}
{% if group.checkAdmin(session.userId) %}
<form action="/groups/{{group.getId}}/modify" method="get">
<button type="submit" class="ui button"><i class="edit icon"></i></button>
......@@ -26,11 +33,6 @@
</form>
<button class="ui button" id="add-user-button"><i class="user plus icon"></i> Add a member </button>
{% endif %}
{% if session.userId and group.hasUser(session.userId) == false %}
<form action="/groups/{{group.getId}}/users/add" method="post">
<button type="submit" class="ui button"><i class="user plus icon"></i></button>
</form>
{% endif %}
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment