Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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 gradereport_user/user_navigation
19
 
20
    The previous/next user navigation for the user report view.
21
 
22
    Context variables required for this template:
23
    * previoususer - (optional) The object containing information about the previous user.
24
        * name - The name of the previous user.
25
        * url - The URL to the previous user report.
26
    * nextuser - (optional) The object containing information about the next user.
27
        * name - The name of the next user.
28
        * url - The URL to the next user report.
29
 
30
    Example context (json):
31
    {
32
        "previoususer": {
33
            "name": "John Smith",
34
            "url": "https://example.com/grade/report/user/index.php?id=2&userid=3"
35
        },
36
        "previoususer": {
37
            "name": "Jane Doe",
38
            "url": "https://example.com/grade/report/user/index.php?id=2&userid=5"
39
        }
40
    }
41
}}
42
<div class="user-navigation w-100">
43
    <div class="container w-100 d-flex">
44
        {{#previoususer}}
45
            <div class="previous d-flex">
46
                <a href="{{url}}" aria-label="{{#str}} gotopreviousreport, gradereport_user {{/str}}">
47
                    <i class="fa fa-caret-{{previousarrow}} fa-lg pr-1"></i>
48
                    {{name}}
49
                </a>
50
            </div>
51
        {{/previoususer}}
52
        {{#nextuser}}
53
            <div class="next d-flex ml-auto">
54
                <a href="{{url}}" aria-label="{{#str}} gotonextreport, gradereport_user {{/str}}">
55
                    {{name}}
56
                    <i class="fa fa-caret-{{nextarrow}} fa-lg pl-1"></i>
57
                </a>
58
            </div>
59
        {{/nextuser}}
60
    </div>
61
</div>