{# ------------------------------------------------------- #} {# INDIVIDUAL VIEW FOR EACH location #} {# This page can use any data from http:localhost:2000/cms/#/form/location/ #} {# Webhook uses the SWIG.js (like Djagno/Twig) templating system. Their documentation is here: #} {# http://paularmstrong.github.io/swig/docs/tags/ #} {# Learn about calling data into Webhook pages here: #} {# http://www.webhook.com/docs/template-rules-and-filters/ #} {# ------------------------------------------------------- #} {# Confused what extends and blocks do? Watch a primer: #} {# http://www.webhook.com/docs/template-inheritance-blocks/ #} {% extends "templates/partials/twocol.html" %} {# This sets our page . It will append this location's name to the site title defined in base.html #} {% block title %}{% parent %} - {{ item.name }}{% endblock %} {% block content %} <h1>{{ item.name }}</h1> <a href="{{item.image_floorplan.url}}" class="js-fluidbox no-smoothstate"><img src="{{ item.image_floorplan|imageSize(1440, auto) }}" /></a> {{ item.details|safe }} {% if item.stream.original_url %} <hr/> <h3>Twitch Stream</h3> <p> <a href="{{item.stream.original_url}}" target="_blank"> <svg class="icon icon--md"><use xlink:href="#icon-host"></use></svg> {{item.stream.original_url}} </a> </p> {% endif %} <hr/> {# All events relationship to this location #} {% if item.event_location.length > 0 %} <dl class="schedule-block"> <dt> <h3>Panels/Events Occuring at this location:</h3> </dt> {% for relation in item.event_location|sort('time_start') %} <dd class="schedule-event"> <a href="{{ url(relation) }}" class="no-smoothstate js-modal-trigger"> <h4 class="schedule-name"> {{ relation.name }} </h4> <p class="schedule-meta"> {% if relation.time_end %} {{relation.category}} - {% endif %} {% if relation.time_end %} {{ relation.time_start|date('l, M d - g:i A') }} - Ends at {{ relation.time_end|date('g:i A') }} {% endif %} </p> {% for relation in relation.location %} <span class="schedule-avatar"><img src="{{ relation.image_avatar|imageCrop(52) }}" /></span> {% endfor %} </a> </dd> {% endfor %} </dl> {% endif %} {% endblock %} {% block aside %} {% include "templates/partials/location-hours.html" %} {% endblock %}