Ver código fonte

gc-1100-usergroup-link-ifelse-add

TsuyoshiSuzukief 7 anos atrás
pai
commit
f50970b70a
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      src/server/views/admin/user-groups.html

+ 5 - 1
src/server/views/admin/user-groups.html

@@ -128,7 +128,11 @@
             <td>
               <img src="{{ sGroup|picture }}" class="picture img-circle" />
             </td>
-            <td><a href="{{ sGroupDetailPageUrl }}">{{ sGroup.name | preventXss }}</a></td>
+            {% if isAclEnabled %}
+              <td><a href="{{ sGroupDetailPageUrl }}">{{ sGroup.name | preventXss }}</a></td>
+            {% else %}
+              <td>{{ sGroup.name | preventXss }}</td>
+            {% endif %}
             <td><ul class="list-inline">
               {% for relation in userGroupRelations.get(sGroup) %}
               <li class="list-inline-item badge badge-primary">{{relation.relatedUser.username}}</li>