{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template core_calendar/event_details Calendar event details. The purpose of this template is to render the event details. This template is used in the summary modal, day and upcoming views to output event information consistently across the calendar. Classes required for JS: * none Data attributes required for JS: * none Example context (json): { "formattedtime": "Wednesday, 17 April, 9:27 AM", "normalisedeventtype": "Group", "description": "An random event description", "location": "Moodle HQ", "isactionevent": "true", "course": { "viewurl": "http://mymoodlesite/course/view.php?id=1", "fullname": "Course name" }, "source": "Ical imported", "groupname": "Group 1", "iscategoryevent": "true", "category": { "nestedname": "Category name" }, "iscourseevent": "true", "groupname": "Group name", "subscription": "true", "displayeventsource": "true", "subscriptionname": "Subscription name", "subscriptionurl": "http://subscriptionurl" } }}
{{#pix}} i/calendareventtime, core, {{#str}} when, core_calendar {{/str}} {{/pix}}
{{{formattedtime}}}
{{#pix}} i/calendar, core, {{#str}} eventtype, core_calendar {{/str}} {{/pix}}
{{normalisedeventtypetext}}
{{#description}}
{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}
{{{.}}}
{{/description}} {{#location}}
{{#pix}} i/location, core, {{#str}} location {{/str}} {{/pix}}
{{{.}}}
{{/location}} {{#isactionevent}}
{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}
{{/isactionevent}} {{#iscategoryevent}}
{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}
{{{category.nestedname}}}
{{/iscategoryevent}} {{#iscourseevent}}
{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}
{{/iscourseevent}} {{#groupname}}
{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}
{{#pix}} i/groupevent, core, {{#str}} group {{/str}} {{/pix}}
{{{groupname}}}
{{/groupname}} {{#subscription}} {{#displayeventsource}}
{{#pix}} i/rss, core, {{#str}} eventsource, core_calendar {{/str}} {{/pix}}
{{#subscriptionurl}}

{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}

{{/subscriptionurl}} {{^subscriptionurl}}

{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}

{{/subscriptionurl}}
{{/displayeventsource}} {{/subscription}}