MDL-65318 core_calendar: make event details consistent across pages
[moodle.git] / calendar / templates / event_summary_body.mustache
index 22d8d27..2d333b4 100644 (file)
     }} data-edit-url="{{editurl}}"{{!
     }}>
     <div class="container-fluid">
-        <div class="row">
-            <div class="col-xs-1">{{#pix}} i/calendareventtime, core, {{#str}} when, core_calendar {{/str}} {{/pix}}</div>
-            <div class="col-xs-11">{{{formattedtime}}}</div>
-        </div>
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/calendar, core, {{#str}} eventtype, core_calendar {{/str}} {{/pix}}</div>
-            <div class="col-xs-11">{{eventtype}}</div>
-        </div>
-        {{#description}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}</div>
-            <div class="description-content col-xs-11">{{{.}}}</div>
-        </div>
-        {{/description}}
-        {{#location}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/location, core, {{#str}} location {{/str}} {{/pix}}</div>
-            <div class="location-content col-xs-11">{{{.}}}</div>
-        </div>
-        {{/location}}
-        {{#isactionevent}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
-            <div class="col-xs-11"><a href="{{course.viewurl}}">{{{course.fullname}}}</a></div>
-        </div>
-        {{/isactionevent}}
-        {{#iscategoryevent}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}</div>
-            <div class="col-xs-11">{{{category.nestedname}}}</div>
-        </div>
-        {{/iscategoryevent}}
-        {{#iscourseevent}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
-            <div class="col-xs-11"><a href="{{url}}">{{{course.fullname}}}</a></div>
-        </div>
-        {{/iscourseevent}}
-        {{#groupname}}
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
-            <div class="col-xs-11"><a href="{{url}}">{{{course.fullname}}}</a></div>
-        </div>
-        <div class="row mt-1">
-            <div class="col-xs-1">{{#pix}} i/groupevent, core, {{#str}} group {{/str}} {{/pix}}</div>
-            <div class="col-xs-11">{{{groupname}}}</div>
-        </div>
-        {{/groupname}}
-        {{#subscription}}
-            {{#displayeventsource}}
-                <div class="row mt-1">
-                    <div class="col-xs-1">{{#pix}} i/rss, core, {{#str}} eventsource, core_calendar {{/str}} {{/pix}}</div>
-                    <div class="col-xs-11">
-                        {{#subscriptionurl}}
-                            <p><a href="{{subscriptionurl}}">{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}</a></p>
-                        {{/subscriptionurl}}
-                        {{^subscriptionurl}}
-                            <p>{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}</p>
-                        {{/subscriptionurl}}
-                    </div>
-                </div>
-            {{/displayeventsource}}
-        {{/subscription}}
+        {{> core_calendar/event_details }}
     </div>
 </div>