Improve display of special groups explanation ?

This commit is contained in:
Alexandre Aubin 2019-10-23 21:35:36 +02:00
parent 444de7646d
commit 72f080e74d
2 changed files with 6 additions and 7 deletions

View file

@ -166,8 +166,8 @@
"group_add_member": "Add a user", "group_add_member": "Add a user",
"group_add_permission": "Add a permission", "group_add_permission": "Add a permission",
"group_new": "New group", "group_new": "New group",
"group_all_users_group_explanation": "Specific group containing all users registered on this instance", "group_explain_all_users": "This is a special group containing all users accounts on the server",
"group_visitors_group_explanation": "Specific group that represents visitors who do not have an account on your yunohost instance", "group_explain_visitors": "This is a special group representing anonymous visitors",
"group_specific_permissions": "User specific permissions", "group_specific_permissions": "User specific permissions",
"groups_and_permissions": "Groups and permissions", "groups_and_permissions": "Groups and permissions",
"groups_and_permissions_manage": "Manage groups and permissions", "groups_and_permissions_manage": "Manage groups and permissions",

View file

@ -62,26 +62,25 @@
</div> </div>
<div id="collapse-group-{{@key}}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-context-group-{{@key}}"> <div id="collapse-group-{{@key}}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-context-group-{{@key}}">
<div class="panel-body"> <div class="panel-body">
{{#unless special}}
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2">
<h3>{{t 'users'}}</h3> <h3>{{t 'users'}}</h3>
</div> </div>
<div class="col-sm-10"> <div class="col-sm-10">
{{#if special}}
<div style="font-style:italic"><span class="fa-info-circle"></span> {{t (concat 'group_explain_' @key)}}</div>
{{else}}
{{> labelsLine display=../displayUser icon="user" type="member" items=members inv=membersInv group=@key}} {{> labelsLine display=../displayUser icon="user" type="member" items=members inv=membersInv group=@key}}
{{/if}}
</div> </div>
</div> </div>
<hr /> <hr />
{{/unless}}
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2">
<h3>{{t 'permissions'}}</h3> <h3>{{t 'permissions'}}</h3>
</div> </div>
<div class="col-sm-10"> <div class="col-sm-10">
{{> labelsLine display=../displayPermission icon="key-modern" type="permission" items=permissions inv=permissionsInv group=@key}} {{> labelsLine display=../displayPermission icon="key-modern" type="permission" items=permissions inv=permissionsInv group=@key}}
{{#if special}}
<div style="font-style:italic"><span class="fa-info-circle"></span> {{t (concat 'group_' @key '_group_explanation')}}</div>
{{/if}}
</div> </div>
</div> </div>
</div> </div>