X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FGroupBundle%2FResources%2Fviews%2FManage%2Findex.html.twig;h=35a70400889e25b90a8d295d697b72b79a5e8afb;hb=5847dd3572caf06c0e0d5e307241c3b6bc3f8611;hp=ce2a4556b4cad9e9d6d323b7e35ac3fe2992e3d1;hpb=36f30fa31e0d2373f5c39851ea9138493fbde341;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig index ce2a4556..35a70400 100644 --- a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig +++ b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig @@ -11,30 +11,58 @@

{{ 'group.description'|trans|raw }}

- - - - - - - - - - {% for group in groups %} - - - - - - {% endfor %} - -
{{ 'group.form.name_label'|trans }}{{ 'group.form.roles_label'|trans }}{{ 'group.list.actions'|trans }}
{{ group.name }} - {{ 'group.list.edit_action'|trans }} -
+ {% if groups is not empty %} + + + + + + + + + + {% for group in groups %} + + + + + + {% endfor %} + +
{{ 'group.form.name_label'|trans }}{{ 'group.form.roles_label'|trans }}{{ 'group.list.actions'|trans }}
{{ group.name }} + {% if app.user in group.users and app.user.inGroup(group) %} + {{ 'group.user.inGroup' | transchoice(group.users | length) }} + {% else %} + {{ 'group.user.notInGroup' | transchoice(group.users | length) }} + {% endif %} + + {% if app.user in group.users and app.user.inGroup(group) %} + {% if app.user.getGroupRoleForUser(group) >= 5 %} + edit + settings_applications + {% endif %} + view_list + clear + {% elseif app.user in group.users and not app.user.inGroup(group) %} + {{ 'group.requests.sent' | trans }} + {% else %} + + {% if group.acceptSystem == 3 %} + lock + {% else %} + input + {% endif %} + + {% endif %} +
+ {% endif %}

{{ 'group.list.create_new_one'|trans }}

+ {% if groups.getNbPages > 1 %} + {{ pagerfanta(groups, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %}