2015-02-23 11:20:05 +01:00
|
|
|
{% extends "base.twig" %}
|
|
|
|
|
2015-02-23 13:42:38 +01:00
|
|
|
{% block container %}
|
2015-02-23 11:20:05 +01:00
|
|
|
|
|
|
|
<div class="row">
|
2015-02-23 13:42:38 +01:00
|
|
|
|
2015-02-23 23:34:54 +01:00
|
|
|
<div class="col-sm-3">
|
2015-02-23 15:45:47 +01:00
|
|
|
|
2015-02-23 13:42:38 +01:00
|
|
|
<h2>Events</h2>
|
2015-02-23 15:45:47 +01:00
|
|
|
|
2015-02-23 13:42:38 +01:00
|
|
|
</div>
|
|
|
|
|
2015-02-23 23:34:54 +01:00
|
|
|
<div class="col-sm-9">
|
2015-02-23 13:42:38 +01:00
|
|
|
|
2015-02-23 15:45:47 +01:00
|
|
|
{% for event in events %}
|
|
|
|
|
|
|
|
<div class="row event well">
|
|
|
|
|
2015-02-23 23:34:54 +01:00
|
|
|
<div class="col-sm-4 meta hidden-xs">
|
|
|
|
{% if event.image is defined %}
|
|
|
|
<div class="img">
|
|
|
|
<img src="{{ event.image }}" />
|
|
|
|
</div>
|
2015-02-23 21:18:41 +01:00
|
|
|
{% else %}
|
|
|
|
<img src="https://wiki.hackerspace.lu/w/images/8/86/Syn2catLOGO.png" />
|
|
|
|
{% endif %}
|
2015-02-23 23:34:54 +01:00
|
|
|
<h4>{{ event.date }}</h4>
|
2015-02-23 21:18:41 +01:00
|
|
|
{% if event.location is defined %}
|
2015-02-23 23:34:54 +01:00
|
|
|
<h4 class="location">{{ event.location }}</h4>
|
2015-02-23 21:18:41 +01:00
|
|
|
{% endif %}
|
2015-02-23 15:45:47 +01:00
|
|
|
</div>
|
2015-02-23 23:34:54 +01:00
|
|
|
<div class="col-sm-8 description">
|
2015-02-23 15:45:47 +01:00
|
|
|
<h2>
|
2015-02-23 23:34:54 +01:00
|
|
|
{% if event.url is defined %}
|
|
|
|
<a href="{{ event.url }}">
|
2015-02-23 15:45:47 +01:00
|
|
|
{{ event.name }}
|
|
|
|
</a>
|
2015-02-23 21:18:41 +01:00
|
|
|
{% else %}
|
2015-02-23 16:09:30 +01:00
|
|
|
{{ event.name }}
|
2015-02-23 21:18:41 +01:00
|
|
|
{% endif %}
|
2015-02-23 15:45:47 +01:00
|
|
|
</h2>
|
2015-02-23 23:34:54 +01:00
|
|
|
<h4 class="visible-xs">
|
|
|
|
{{ event.date }}
|
|
|
|
{% if event.location is defined %}
|
|
|
|
- {{ event.location }}
|
|
|
|
{% endif %}
|
|
|
|
</h4>
|
|
|
|
{% if event.description is defined %}
|
|
|
|
<p>{{ event.description|raw }}</p>
|
|
|
|
{% endif %}
|
2015-02-23 15:45:47 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endfor %}
|
2015-02-23 13:42:38 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-02-23 11:20:05 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|