themes/bases/Campussuite2015/modules/Calendar/View/build/tpl.html.twig line 1

Open in your IDE?
  1. <div class="csm-event csm-event--post dept--c{{ event.entity.container.color|default(0) }}">
  2.     <div class="row">
  3.         
  4.         <!--begin event body-->
  5.         <div class="csm-event__body">
  6.             <p class="csm-event__dept">{{ event.frontendDepartmentName }}</p>
  7.             <h1 class="csm-event__title"> {{ event.frontendTitle }}</h1>
  8.             <div class="csm-event__meta">
  9.                 <p class="csm-event__date">{{ event.frontendDate }}</p>
  10.                 {% if event.frontendTime is not empty %}
  11.                     <p class="csm-event__time">{{ event.frontendTime }}</p>
  12.                 {% endif %}
  13.                 {% if event.frontendType is not empty %}
  14.                     <p class="csm-event__type">{{ event.frontendType }}</p>
  15.                 {% endif %}
  16.                 {% if event.frontendLocation is not empty %}
  17.                     <p class="csm-event__location">
  18.                         {% if event.frontendLocationLink is not empty %}<a href="{{ event.frontendLocationLink }}">{% endif %}
  19.                             {{- event.frontendLocation -}}
  20.                         {% if event.frontendLocationLink is not empty %}</a>{% endif %}
  21.                     </p>
  22.                 {% endif %}
  23.             </div>
  24.             <div class="csm-event__description">
  25.                 <div>
  26.                     {{- event.frontendDescription|raw -}}
  27.                 </div>
  28.                 
  29.                 {% if event.frontendAttachments|default([])|length > 0 %}
  30.                 <div class="event-attachments">
  31.                     <h2 class="event-attachments__heading">
  32.                         Attachments
  33.                     </h2>
  34.                     <ul class="event-attachments__list">
  35.                         {% for attachment in event.frontendAttachments %}
  36.                             {%- set attachment = ui_attachment(attachment) -%}
  37.                             <li class="event-attachments__item"><a href="{{ attachment.url }}">{{ attachment.name }}</a></li>
  38.                         {% endfor %}
  39.                     </ul>
  40.                 </div>
  41.                 {% endif %}
  42.                 
  43.                 <a class="m-button m-button--back"
  44.                    href="{{ app.request.headers.get('Referer') is not empty ?  app.request.headers.get('Referer') : containerUrl(_globals.container) ~ '/calendar' }}"
  45.                 >
  46.                     Back to Calendar
  47.                 </a>
  48.             </div>
  49.         </div>
  50.         <!--end event body-->
  51.         
  52.         <!--begin event sidebar-->
  53.         <div class="csm-event__sidebar">
  54.             <h2 class="csm-event__sidebar__heading">
  55.                 Add event to my calendar
  56.             </h2>
  57.             <p>Add this event to your personal calendar by selecting one of the formats below.</p>
  58.             <div class="csm-event__actions">
  59.                 <a class="m-button m-button--add-cal m-button--google-cal" role="button" tabindex="0"
  60.                    href="{{ _share.factory('google').url(event) }}" target="_blank">
  61.                     <em class="fa fa-google" aria-hidden="true"></em>Google Calendar
  62.                 </a>
  63.                 <a class="m-button m-button--add-cal m-button--office365-cal" role="button" tabindex="0"
  64.                    href="{{ _share.factory('microsoft').url(event) }}" target="_blank">
  65.                     <em class="fa fa-windows" aria-hidden="true"></em>Office 365 Calendar
  66.                 </a>
  67.                 <a class="m-button m-button--add-cal m-button--ical-cal" role="button" tabindex="0"
  68.                    href="{{ _share.factory('ical').url(event) }}">
  69.                     <em class="fa fa-calendar-o" aria-hidden="true"></em>iCal
  70.                 </a>
  71.             </div>
  72.         </div>
  73.         <!--begin event sidebar-->
  74.         
  75.     </div>
  76. </div>