MDL-60700 clean: add course link to activity event summary modal
authorRyan Wyllie <ryan@moodle.com>
Tue, 7 Nov 2017 07:36:49 +0000 (07:36 +0000)
committerRyan Wyllie <ryan@moodle.com>
Tue, 7 Nov 2017 07:36:49 +0000 (07:36 +0000)
theme/bootstrapbase/templates/core_calendar/event_summary_body.mustache

index 589c3bb..980e2d2 100644 (file)
             <div class="description-content span11">{{{.}}}</div>
         </div>
         {{/description}}
             <div class="description-content span11">{{{.}}}</div>
         </div>
         {{/description}}
+        {{#isactionevent}}
+        <div class="row-fluid m-t-1">
+            <div class="span1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
+            <div class="span11"><a href="{{course.viewurl}}">{{{course.fullname}}}</a></div>
+        </div>
+        {{/isactionevent}}
         {{#iscategoryevent}}
         <div class="row-fluid m-t-1">
             <div class="span1">{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}</div>
         {{#iscategoryevent}}
         <div class="row-fluid m-t-1">
             <div class="span1">{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}</div>