Commit f0f71c74 authored by gijs's avatar gijs
Browse files

Display of event times and location.

parent d750272f
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% for event in events %} {% for event in events %}
<li> <li>
<a href="{{ event.link }}"><h4>{{ event }}</h4></a> <a href="{{ event.link }}"><h4>{{ event }}</h4></a>
{{ event.date }} {% if event.time.value %}, {{ event.time }}{% endif %} {{ event.date }}{% if event.time.value %}, {{ event.time }}{% endif %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
<section class="info"> <section class="info">
<time datetime="2019-05-24">{{ event.date }}</time> <time datetime="2019-05-24">{{ event.date }}</time>
<p> <p>
{{ event.location }}<br /> {% if event.time.value %}
{% if event.address %} {{ event.time }}<br />
{% for addressline in event.address %} {% endif %}
{{ addressline }}<br /> {% if event.location.value %}
{% endfor %} {{ event.location }}<br />
{% endif %} {% endif %}
</p> </p>
{% if event.participant or event.produser %} {% if event.participant or event.produser %}
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</li> </li>
{% for item in events %} {% for item in events %}
<li id="{{ item.key }}"> <li id="{{ item.key }}">
<h2>{{ item.time }} {{ item }}</h2> <h2>{% if item.time.value %}{{ item.time }}{% endif %} {{ item }}</h2>
<p class="event-infos"> <p class="event-infos">
{% for produser in item.produser|link_target_iterator %} {% for produser in item.produser|link_target_iterator %}
<a href="{{ produser.link }}" class="produser">{{ produser }}</a> <a href="{{ produser.link }}" class="produser">{{ produser }}</a>
......
...@@ -15,10 +15,15 @@ ...@@ -15,10 +15,15 @@
</nav> </nav>
<h1>{{ event }}</h1> <h1>{{ event }}</h1>
<section class="info"> <section class="info">
<time datetime="2019-05-24">{{ event.date }}</time> <time>{{ event.date }}</time>
<p> <p>
{{ event.location }}<br /> {% if event.time.value %}
{% if event.address %} {{ event.time }}<br />
{% endif %}
{% if event.location.value %}
{{ event.location }}<br />
{% endif %}
{% if event.address.value %}
{% for addressline in event.address.value %} {% for addressline in event.address.value %}
{{ addressline }}<br /> {{ addressline }}<br />
{% endfor %} {% endfor %}
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<div class="event-detail-header"> <div class="event-detail-header">
<p class="event-date"><time datetime="2019-05-24">{{ event.date }}</time></p> <p class="event-date"><time datetime="2019-05-24">{{ event.date }}</time></p>
<h2 class="event-title">{{ event }}</h2> <h2 class="event-title">{{ event }}</h2>
<section class="event-summary"> <section class="event-summary">
{% if event.programmeItems %} {% if event.programmeItems %}
<p><a href="{{ event.link }}">See programme</a></p> <p><a href="{{ event.link }}">See programme</a></p>
...@@ -59,7 +60,12 @@ ...@@ -59,7 +60,12 @@
</section> </section>
<section class="event-detail"> <section class="event-detail">
<p class="event-infos">{{ event.location }}</p> {% if event.time.value %}
<p class="event-infos">{{ event.time }}</p>
{% endif %}
{% if event.location.value %}
<p class="event-infos">{{ event.location }}</p>
{% endif %}
{% for line in event.address.value %} {% for line in event.address.value %}
<p class="event-infos">{{ line }}</p> <p class="event-infos">{{ line }}</p>
{% endfor %} {% endfor %}
......
...@@ -602,6 +602,10 @@ a.tag { ...@@ -602,6 +602,10 @@ a.tag {
margin-top: .5em; margin-top: .5em;
} }
.programme-item-list :target h2 {
color: var(--orange-karel);
}
.programme-item-list > li { .programme-item-list > li {
border-bottom: 2px solid black; border-bottom: 2px solid black;
padding: 1em; padding: 1em;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment