Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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 core/full_header
19
 
20
    This template renders the header.
21
 
22
    Example context (json):
23
    {
24
        "contextheader": "context_header_html",
25
        "hasnavbar": false,
26
        "navbar": "navbar_if_available",
27
        "courseheader": "course_header_html",
28
        "welcomemessage": "welcomemessage"
29
    }
30
}}
31
<header id="page-header" class="row">
32
    <div class="col-12 pt-3 pb-3">
33
        <div class="card {{^contextheader}}border-0 bg-transparent{{/contextheader}}">
34
            <div class="card-body {{^contextheader}}p-2{{/contextheader}}">
35
                <div class="d-flex align-items-center">
36
                    <div class="mr-auto">
37
                    {{{contextheader}}}
38
                    </div>
39
                    <div class="header-actions-container flex-shrink-0" data-region="header-actions-container">
40
                        {{#headeractions}}
41
                            <div class="header-action ml-2">{{{.}}}</div>
42
                        {{/headeractions}}
43
                    </div>
44
                </div>
45
                <div class="d-flex flex-wrap">
46
                    {{#hasnavbar}}
47
                    <div id="page-navbar">
48
                        {{{navbar}}}
49
                    </div>
50
                    {{/hasnavbar}}
51
                    <div class="ml-auto d-flex">
52
                        {{{pageheadingbutton}}}
53
                    </div>
54
                    <div id="course-header">
55
                        {{{courseheader}}}
56
                    </div>
57
                </div>
58
            </div>
59
        </div>
11 efrain 60
        {{#welcomemessage}}
61
            <div class="card border-0 mt-3">
62
                <div class="card-body py-0">
63
                    {{> core/welcome }}
64
                </div>
65
            </div>
66
        {{/welcomemessage}}
1 efrain 67
    </div>
68
</header>