Merge branch 'MDL-58574-master' of git://github.com/lameze/moodle
authorJun Pataleta <jun@moodle.com>
Tue, 18 Apr 2017 06:43:57 +0000 (14:43 +0800)
committerJun Pataleta <jun@moodle.com>
Tue, 18 Apr 2017 06:43:57 +0000 (14:43 +0800)
lib/templates/permissionmanager_role.mustache

index d6314df..d2a1652 100644 (file)
      "action": "prevent",
      "spanclass": "allowed",
      "linkclass": "preventlink",
-     "adminurl" : "http://localhost/moodle/admin/",
-     "imageurl": "http://localhost/moodle/theme/image.php?theme=base&component=core&image=t%2Fdelete"}
+     "adminurl" : "http://localhost/moodle/admin/"}
 }}
 <span style="display:inline-block;" class="{{spanclass}}">&nbsp;{{rolename}}&nbsp;
-    {{#imageurl}}
-        <a href="{{adminurl}}roles/permissions.php" class="{{linkclass}}" data-role-id="{{roleid}}" data-action="{{action}}">
-            {{#icon}}
-                {{#pix}}{{icon}}, 'core', {{iconalt}}{{/pix}}
-            {{/icon}}
-        </a>
-    {{/imageurl}}
+    <a href="{{adminurl}}roles/permissions.php" class="{{linkclass}}" data-role-id="{{roleid}}" data-action="{{action}}">
+        {{#icon}}
+            {{#pix}}{{icon}}, core, {{iconalt}}{{/pix}}
+        {{/icon}}
+    </a>
 </span>