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 block_myoverview/course-action-menu
19
 
20
    This template renders action menu for each course.
21
 
22
    Example context (json):
23
    {
24
        "isfavourite": true
25
    }
26
}}
27
<div class="ml-auto dropdown">
28
    <button class="btn btn-link btn-icon icon-size-3 coursemenubtn"
29
        type="button"
30
        data-toggle="dropdown"
31
        aria-haspopup="true"
32
        aria-expanded="false">
33
        <i class="icon fa fa-ellipsis-v fa-fw m-0" title="{{#str}} aria:courseactions, block_myoverview {{/str}} {{{fullname}}}" aria-hidden="true"></i>
34
        <span class="sr-only">{{#str}} aria:courseactions, block_myoverview {{/str}} {{{fullname}}}</span>
35
    </button>
36
    <div class="dropdown-menu dropdown-menu-right">
37
        <a class="dropdown-item {{#isfavourite}}hidden{{/isfavourite}}" href="#"
38
            data-action="add-favourite"
39
            data-course-id="{{id}}"
40
            aria-controls="favorite-icon-{{ id }}-{{ uniqid }}"
41
            >
42
            {{#str}} addtofavourites, block_myoverview {{/str}}
43
            <div class="sr-only">
44
                {{#str}} aria:addtofavourites, block_myoverview {{/str}} {{{fullname}}}
45
            </div>
46
        </a>
47
        <a class="dropdown-item {{^isfavourite}}hidden{{/isfavourite}}" href="#"
48
            data-action="remove-favourite"
49
            data-course-id="{{id}}"
50
            aria-controls="favorite-icon-{{ id }}-{{ uniqid }}"
51
            >
52
            {{#str}} removefromfavourites, block_myoverview {{/str}}
53
            <div class="sr-only">
54
                {{#str}} aria:removefromfavourites, block_myoverview {{/str}} {{{fullname}}}
55
            </div>
56
        </a>
57
        <a class="dropdown-item {{^hidden}}hidden{{/hidden}}" href="#"
58
            data-action="show-course"
59
            data-course-id="{{id}}"
60
            aria-controls="favorite-icon-{{ id }}-{{ uniqid }}"
61
            >
62
            {{#str}} show, block_myoverview {{/str}}
63
            <div class="sr-only">
64
                {{#str}} aria:showcourse, block_myoverview, {{fullname}} {{/str}}
65
            </div>
66
        </a>
67
        <a class="dropdown-item {{#hidden}}hidden{{/hidden}}" href="#"
68
            data-action="hide-course"
69
            data-course-id="{{id}}"
70
            aria-controls="favorite-icon-{{ id }}-{{ uniqid }}"
71
            >
72
            {{#str}} hidecourse, block_myoverview {{/str}}
73
            <div class="sr-only">
74
                {{#str}} aria:hidecourse, block_myoverview, {{fullname}} {{/str}}
75
            </div>
76
        </a>
77
    </div>
78
</div>