diff options
Diffstat (limited to 'src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig')
-rw-r--r-- | src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig index 01466e52..35a70400 100644 --- a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig +++ b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig | |||
@@ -12,7 +12,7 @@ | |||
12 | <p class="help">{{ 'group.description'|trans|raw }}</p> | 12 | <p class="help">{{ 'group.description'|trans|raw }}</p> |
13 | 13 | ||
14 | {% if groups is not empty %} | 14 | {% if groups is not empty %} |
15 | <table class="bordered"> | 15 | <table class="bordered responsive-table"> |
16 | <thead> | 16 | <thead> |
17 | <tr> | 17 | <tr> |
18 | <th>{{ 'group.form.name_label'|trans }}</th> | 18 | <th>{{ 'group.form.name_label'|trans }}</th> |
@@ -24,9 +24,32 @@ | |||
24 | {% for group in groups %} | 24 | {% for group in groups %} |
25 | <tr> | 25 | <tr> |
26 | <td>{{ group.name }}</td> | 26 | <td>{{ group.name }}</td> |
27 | <td></td> | ||
28 | <td> | 27 | <td> |
29 | <a href="{{ path('group_edit', { 'id': group.id }) }}">{{ 'group.list.edit_action'|trans }}</a> | 28 | {% if app.user in group.users and app.user.inGroup(group) %} |
29 | {{ 'group.user.inGroup' | transchoice(group.users | length) }} | ||
30 | {% else %} | ||
31 | {{ 'group.user.notInGroup' | transchoice(group.users | length) }} | ||
32 | {% endif %} | ||
33 | </td> | ||
34 | <td> | ||
35 | {% if app.user in group.users and app.user.inGroup(group) %} | ||
36 | {% if app.user.getGroupRoleForUser(group) >= 5 %} | ||
37 | <a href="{{ path('group_edit', { 'id': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.list.edit_action'|trans }}"><i class="material-icons">edit</i></a> | ||
38 | <a href="{{ path('group-manage', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.manage.label'|trans }}"><i class="material-icons">settings_applications</i></a> | ||
39 | {% endif %} | ||
40 | <a href="{{ path('group-presentations', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.entries.label'|trans }}"><i class="material-icons">view_list</i></a> | ||
41 | <a href="{{ path('group_leave', { 'group': group.id }) }}" class="waves-effect waves-light btn red tooltipped" data-delay="50" data-position="bottom" data-tooltip="{{ 'group.leave.label'|trans }}"><i class="material-icons">clear</i></a> | ||
42 | {% elseif app.user in group.users and not app.user.inGroup(group) %} | ||
43 | {{ 'group.requests.sent' | trans }} | ||
44 | {% else %} | ||
45 | <a href="{{ path('group_join', { 'group': group.id }) }}" class="waves-effect waves-light btn tooltipped" data-tooltip="{{ 'group.join.label'|trans }}" data-delay="50" data-position="bottom"> | ||
46 | {% if group.acceptSystem == 3 %} | ||
47 | <i class="material-icons md-18 vertical-align-middle" data-toggle="tooltip" data-placement="bottom" title="{{ 'group.join'|trans }}">lock</i> | ||
48 | {% else %} | ||
49 | <i class="material-icons" data-toggle="tooltip" data-placement="bottom" title="{{ 'group.join'|trans }}">input</i> | ||
50 | {% endif %} | ||
51 | </a> | ||
52 | {% endif %} | ||
30 | </td> | 53 | </td> |
31 | </tr> | 54 | </tr> |
32 | {% endfor %} | 55 | {% endfor %} |