MDL-59674 core_calendar: add group name to summary template
authorSimey Lameze <simey@moodle.com>
Fri, 18 Aug 2017 03:27:44 +0000 (11:27 +0800)
committerRyan Wyllie <ryan@moodle.com>
Wed, 23 Aug 2017 00:56:26 +0000 (00:56 +0000)
calendar/templates/event_summary_body.mustache

index e5301bd..376d2f1 100644 (file)
@@ -23,7 +23,9 @@
     {
         "timestart": 1490320388,
         "description": "An random event description",
-        "eventtype": "open"
+        "eventtype": "User",
+        "source": "Ical imported",
+        "groupname": "Group 1"
     }
 }}
 <div data-region="summary-modal-container" data-event-id="{{id}}" data-event-title="{{name}}"
@@ -40,4 +42,7 @@
     {{#source}}
         <div>{{{source}}}</div>
     {{/source}}
+    {{#groupname}}
+        <div>{{{groupname}}}</div>
+    {{/groupname}}
 </div>