Merge branch 'MDL-75910-311' of https://github.com/andrewnicols/moodle into MOODLE_31...
[moodle.git] / lib / templates / async_restore_progress_row.mustache
blobc67e528b3faca2bf9b0930169b7bdf6e29ad70fc
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/async_restore_progress_row.
20     Moodle Asynchronous restore status table row template.
22     The purpose of this template is to render status
23     table row updates during an asynchronous restore process.
25     Classes required for JS:
26     * none
28     Data attributes required for JS:
29     * none
31     Context variables required for this template:
32     *
34     Example context (json):
35     {
36         "resourcename" : "Mathematics 101",
37         "time": "Tuesday, 26 March 2019, 3:47 PM",
38         "restoreurl": "https://moodle.local/backup/restorefile.php?action=choosebackupfile&filename=backup-moodle2-course-49390-test_course-20190326-1546-nu-nf.mbz&filepath=%2F&component=backup&filearea=course&filecontextid=7945628&contextid=7945628&itemid=0"
39     }
41 <td class="cell c0" style="">
42   <a href="{{restoreurl}}">{{resourcename}}</a>
43 </td>
44 <td class="cell c1" style="">{{time}}</td>
45 <td class="cell c2 lastcol" style="">
46   <span class="action-icon">
47     <i class="icon fa fa-check fa-fw " title="{{# str }} successfulrestore, backup {{/ str }}" aria-label="{{# str }} successfulrestore, backup {{/ str }}"></i>
48   </span>
49 </td>