Skip to content

Commit

Permalink
MDL-38763 roles: Fix example context for mustache templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese authored and stronk7 committed Sep 3, 2015
1 parent c47f380 commit 7cf70b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/templates/permissionmanager_panelcontent.mustache
Expand Up @@ -30,8 +30,7 @@
* roles array of role details
Example context (json):
{ "message": "Do you really want to remove Non-editing teacher from the list of allowed roles for capability
View added and updated modules in recent activity block?",
{ "message": "Do you really want to remove Non-editing teacher from the list of allowed roles for capability View added and updated modules in recent activity block?",
"roles": [{"roleid": 1, "rolename": "manager", "disabled":"disabled"}]}
}}
<div class="popup_content" style="text-align:center;">
Expand Down
4 changes: 2 additions & 2 deletions lib/templates/permissionmanager_role.mustache
Expand Up @@ -37,7 +37,7 @@
Example context (json):
{"rolename" : "Manager",
"roleid : 1,
"roleid" : 1,
"action": "prevent",
"spanclass": "allowed",
"linkclass": "preventlink",
Expand All @@ -50,4 +50,4 @@
<img src="{{imageurl}}" alt="{{action}}" />
</a>
{{/imageurl}}
</span>
</span>

0 comments on commit 7cf70b0

Please sign in to comment.