Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
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.
8
 
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.
13
 
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/>.
16
}}
17
{{!
18
    @template report_outline/report
19
 
20
    Template for Activity report.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Context variables required for this template:
29
    * none
30
 
31
    Example context (json):
32
    {
33
        "minlog": "Monday, 29 April 2024, 4:18 PM",
34
        "table": {
35
            "class": "generaltable boxaligncenter",
36
            "id": "outlinereport",
37
            "headers": ["Activity", "Views", "Last access"],
38
            "headerscount": 3,
39
            "actitivities": [{
40
                "isactivity": false,
41
                "indelegated": true,
42
                "visible": true,
43
                "class": "activity",
44
                "text": "Announcements",
45
                "cells": [{
46
                    "activityclass": "lastaccess",
47
                    "text": "Friday, 14 June 2024, 5:17 PM"
48
                }]
49
            },
50
            {
51
                "issection": true,
52
                "isdelegated": true,
53
                "visible": true,
54
                "class": "section",
55
                "text": "Section 1"
56
            }]
57
        }
58
    }
59
}}
60
<div class="loginfo font-lg my-5 pb-2">{{#str}} computedfromlogs, admin, {{{ minlog }}} {{/str}}</div>
61
<div class="table-responsive">
62
    {{#table}}
63
    <table class="{{ class }}"{{#id}} id = "{{ id }}"{{/id}}>
64
        <thead>
65
        <tr>
66
            {{#headers}}
67
                <th class="header font-lg" style="" scope="col">{{{ . }}}</th>
68
            {{/headers}}
69
        </tr>
70
        </thead>
71
        <tbody>
72
            {{#activities}}
73
                {{#issection}}
74
                    {{>report_outline/section }}
75
                {{/issection}}
76
                {{#isdelegated}}
77
                    {{>report_outline/delegatedsection }}
78
                {{/isdelegated}}
79
                {{#isactivity}}
80
                    {{>report_outline/activity }}
81
                {{/isactivity}}
82
            {{/activities}}
83
        </tbody>
84
    </table>
85
    {{/table}}
86
</div>