Proyectos de Subversion Moodle

Rev

Rev 826 | Ir a la última revisión | | 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 block_recentlyaccessedcourses/recentlyaccessedcourses-view
19
 
20
    This template renders the courses view for the recentlyaccessedcourses block.
21
 
22
    Example context (json):
23
    {
24
    }
25
}}
817 ariadna 26
 
1 efrain 27
<div id="recentlyaccessedcourses-view-{{uniqid}}" data-region="recentlyaccessedcourses-view">
28
    <div data-region="loading-placeholder">
29
        <div class="card-grid mx-0 mt-5 row row-cols-1 row-cols-sm-2 row-cols-md-3 flex-nowrap overflow-hidden" style="height: 13.05rem">
30
            <div class="col p-0">{{> core_course/placeholder-course }}</div>
31
            <div class="col p-0">{{> core_course/placeholder-course }}</div>
32
            <div class="col p-0">{{> core_course/placeholder-course }}</div>
33
        </div>
34
    </div>
35
    <div class="hidden" data-region="view-content">
36
        {{#pagingbar}}
827 ariadna 37
            <h3>Continuar con mi curso activo:</h3>
1 efrain 38
            <div class="d-flex paging-bar-container mb-3" data-region="paging-bar-container">
39
                {{> core/paged_content_paging_bar }}
40
            </div>
41
        {{/pagingbar}}
42
        <div class="card-carousel mx-0 justify-content-center flex-nowrap overflow-hidden" data-region="card-deck" role="list">
43
            {{#courses}}
44
                {{> core_course/coursecard }}
45
            {{/courses}}
46
        </div>
47
    </div>
48
    <div class="hidden text-xs-center text-center mt-3" data-region="empty-message">
49
        <img class="empty-placeholder-image-lg mt-1"
50
            src="{{nocoursesimgurl}}"
51
            alt="">
52
        <p class="text-muted mt-3">{{#str}} nocourses, block_recentlyaccessedcourses {{/str}}</p>
53
    </div>
54
</div>