Merge branch 'MDL-58574-master' of git://github.com/lameze/moodle

This commit is contained in:
Jun Pataleta 2017-04-18 14:43:57 +08:00
commit 762550d7d2

View File

@ -41,15 +41,12 @@
"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>