diff --git a/admin/tool/policy/classes/output/page_viewalldoc.php b/admin/tool/policy/classes/output/page_viewalldoc.php index 5ca5d99bd5e..66ea3aa25a7 100644 --- a/admin/tool/policy/classes/output/page_viewalldoc.php +++ b/admin/tool/policy/classes/output/page_viewalldoc.php @@ -102,6 +102,7 @@ class page_viewalldoc implements renderable, templatable { array_walk($data->policies, function($item, $key) { $item->policytypestr = get_string('policydoctype'.$item->type, 'tool_policy'); + $item->policyaudiencestr = get_string('policydocaudience'.$item->audience, 'tool_policy'); }); return $data; diff --git a/admin/tool/policy/lang/en/tool_policy.php b/admin/tool/policy/lang/en/tool_policy.php index fd291752bc3..3a752851900 100644 --- a/admin/tool/policy/lang/en/tool_policy.php +++ b/admin/tool/policy/lang/en/tool_policy.php @@ -84,6 +84,7 @@ $string['inactivatingconfirm'] = '

You are about to inactivate policy \'{$ $string['inactivatingconfirmyes'] = 'Inactivate'; $string['invalidversionid'] = 'There is no policy with this identifier!'; $string['irevokethepolicy'] = 'Withdraw user consent'; +$string['listactivepolicies'] = 'List of active policies'; $string['minorchange'] = 'Minor change'; $string['minorchangeinfo'] = 'A minor change does not alter the meaning of the policy. Users are not required to agree to the policy again if the edit is marked as a minor change.'; $string['managepolicies'] = 'Manage policies'; diff --git a/admin/tool/policy/templates/page_viewalldoc.mustache b/admin/tool/policy/templates/page_viewalldoc.mustache index 89812ffa07b..2f9df36e0a5 100644 --- a/admin/tool/policy/templates/page_viewalldoc.mustache +++ b/admin/tool/policy/templates/page_viewalldoc.mustache @@ -36,26 +36,42 @@ "name": "Terms & conditions", "summary": "Policy summary", "content": "Policy content", - "policytypestr": "Site policy" + "policytypestr": "Site policy", + "policyaudiencestr": "All users" }, { "id": "5", "name": "Privacy", "summary": "We keep your information private", "content": "Very private", - "policytypestr": "Privacy policy" + "policytypestr": "Privacy policy", + "policyaudiencestr": "Authenticated users" } ] } }} -

-