Merge branch 'MDL-70789-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE
[moodle.git] / lib / templates / filemanager_licenselinks.mustache
blob0d4ec2d722271712ceda9a5e8071777db6496fe0
1 {{!
2     This file is part of Moodle - http://moodle.org/
4     Moodle is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
9     Moodle is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
14     You should have received a copy of the GNU General Public License
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17 {{!
18     @template core/filemanager_licenselinks
20     This template renders the window with file information/actions.
22     Example context (json):
23     {
24         "licenses":[
25            {
26               "fullname":"All rights reserved",
27               "source":"http:\/\/en.wikipedia.org\/wiki\/All_rights_reserved"
28            },
29            {
30               "fullname":"Public Domain",
31               "source":"http:\/\/creativecommons.org\/licenses\/publicdomain\/"
32            },
33            {
34               "fullname":"Creative Commons",
35               "source":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"
36            },
37            {
38               "fullname":"Creative Commons - NoDerivs",
39               "source":"http:\/\/creativecommons.org\/licenses\/by-nd\/3.0\/"
40            },
41            {
42               "fullname":"Creative Commons - No Commercial NoDerivs",
43               "source":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/"
44            },
45            {
46               "fullname":"Creative Commons - No Commercial",
47               "source":"http:\/\/creativecommons.org\/licenses\/by-nc\/3.0\/"
48            },
49            {
50               "fullname":"Creative Commons - No Commercial ShareAlike",
51               "source":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/"
52            },
53            {
54               "fullname":"Creative Commons - ShareAlike",
55               "source":"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/"
56            }
57         ]
58     }
60 <p class="mb-1">
61     {{#str}}chooselicense_help, repository{{/str}}
62 </p>
63 <ul>
64 {{#licenses}}
65     <li>
66         <a href="{{source}}" target="_blank">{{fullname}}</a>
67     </li>
68 {{/licenses}}
69 {{^licenses}}
70     <li>
71         {{#str}}nolicenses, repository{{/str}}
72     </li>
73 {{/licenses}}
74 </ul>