{# ------------------------------------------------------- #} {# INDIVIDUAL VIEW FOR EACH event #} {# This page can use any data from http:localhost:2000/cms/#/form/event/ #} {# 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 event's name to the site title defined in base.html #} {% block title %}{% parent %} - {{ item.name }}{% endblock %} {% block content %} <h1>{{ item.name }}</h1> <ul class="flex flex--column"> <li> <svg class="icon icon--md"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-clock"></use></svg> {{ item.time_start|date('F d g:i A') }} - {{ item.time_end|date('g:i A') }} </li> {% if item.guests.length > 0 %} <li> <svg class="icon icon--md"><use xlink:href="#icon-user"></use></svg> {% for relation in item.guests|sort('tier') %} <a href="{{ url(relation) }}" class="no-smoothstate">{{ relation.name }}</a>{% if !loop.last or item.exhibitors.length > 0 %}, {% endif %} {% endfor %} {% for relation in item.exhibitors|sort('tier') %} <a href="{{ url(relation) }}" class="no-smoothstate">{{ relation.name }}</a>{% if !loop.last %},{% endif %} {% endfor %} </li> {% endif %} {% if item.location %} {% for relation in item.location %} <li> <a href="{{ url(relation) }}" class="no-smoothstate"> <svg class="icon icon--md"><use xlink:href="#icon-location"></use></svg> {{ relation.name }} </a> </li> {% if relation.stream.original_url %} <li> <a href="{{relation.stream.original_url}}" target="_blank"> <svg class="icon icon--md"><use xlink:href="#icon-host"></use></svg> {{relation.stream.original_url}} </a> </li> {% endif %} {% endfor %} {% endif %} </ul> {{ item.wysiwyg_text|safe }} {% if item.stream %} <div class="aspect aspect--player-chrome"> <div class="aspect__fill"> {{item.stream.html|safe}} </div> </div> <p><a href="{{ item.stream.original_url }}">Join the chat on <svg class="icon icon--md"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-logo-glitch"></use></svg> {{ item.stream.original_url|replace('http://', '', 'g') }}</a></p> {% endif %} {% endblock %} {% block aside %} {% include "templates/partials/location-hours.html" %} {% endblock %}