MDL-60700 clean: add course link to activity event summary modal
[moodle.git] / theme / bootstrapbase / templates / core_calendar / event_summary_body.mustache
CommitLineData
4febb36e
RW
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_calendar/event_summary_body
19
20 This template renders the body of calendar events summary modal.
21
22 Example context (json):
23 {
24 "timestart": 1490320388,
25 "description": "An random event description",
26 "eventtype": "User",
27 "source": "Ical imported",
28 "groupname": "Group 1"
29 }
30}}
31<div{{!
f0fc8a19 32 }} class="summary-modal-container"{{!
4febb36e
RW
33 }} data-region="summary-modal-container"{{!
34 }} data-event-id="{{id}}"{{!
35 }} data-event-title="{{name}}"{{!
36 }} data-event-count="{{eventcount}}"{{!
37 }} data-event-="{{repeatid}}"{{!
38 }} data-action-event="{{isactionevent}}"{{!
39 }} data-edit-url="{{editurl}}"{{!
40 }}>
41 <div class="container-fluid">
42 <div class="row-fluid">
43 <div class="span1">{{#pix}} i/calendareventtime, core, {{#str}} when, core_calendar {{/str}} {{/pix}}</div>
44 <div class="span11">{{#userdate}} {{timestart}}, {{#str}} strftimerecentfull {{/str}} {{/userdate}}</div>
45 </div>
46 <div class="row-fluid m-t-1">
47 <div class="span1">{{#pix}} i/calendar, core, {{#str}} eventtype, core_calendar {{/str}} {{/pix}}</div>
48 <div class="span11">{{eventtype}}</div>
49 </div>
50 {{#description}}
51 <div class="row-fluid m-t-1">
52 <div class="span1">{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}</div>
f0fc8a19 53 <div class="description-content span11">{{{.}}}</div>
4febb36e
RW
54 </div>
55 {{/description}}
ec8f488f
RW
56 {{#isactionevent}}
57 <div class="row-fluid m-t-1">
58 <div class="span1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
59 <div class="span11"><a href="{{course.viewurl}}">{{{course.fullname}}}</a></div>
60 </div>
61 {{/isactionevent}}
4febb36e
RW
62 {{#iscategoryevent}}
63 <div class="row-fluid m-t-1">
64 <div class="span1">{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}</div>
65 <div class="span11">{{{category.nestedname}}}</div>
66 </div>
67 {{/iscategoryevent}}
68 {{#iscourseevent}}
69 <div class="row-fluid m-t-1">
70 <div class="span1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
71 <div class="span11"><a href="{{url}}">{{{course.fullname}}}</a></div>
72 </div>
73 {{/iscourseevent}}
74 {{#groupname}}
75 <div class="row-fluid m-t-1">
76 <div class="span1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
77 <div class="span11"><a href="{{url}}">{{{course.fullname}}}</a></div>
78 </div>
79 <div class="row-fluid m-t-1">
80 <div class="span1">{{#pix}} i/groupevent, core, {{#str}} group {{/str}} {{/pix}}</div>
81 <div class="span11">{{{groupname}}}</div>
82 </div>
83 {{/groupname}}
84 {{#subscription}}
85 {{#displayeventsource}}
86 <div class="row-fluid m-t-1">
87 <div class="span1">{{#pix}} i/rss, core, {{#str}} eventsource, core_calendar {{/str}} {{/pix}}</div>
88 <div class="span11">
89 {{#url}}
90 <a href="{{url}}">{{#str}}subscriptionsource, core_calendar, {{name}}{{/str}}</a>
91 {{/url}}
92 {{^url}}
93 <p>{{#str}}subscriptionsource, core_calendar, {{name}}{{/str}}</p>
94 {{/url}}
95 </div>
96 </div>
97 {{/displayeventsource}}
98 {{/subscription}}
99 </div>
100</div>