Commit b2f22f57 authored by gijs's avatar gijs

To avoid breaking in the lines

parent 7f45f872
......@@ -12,7 +12,7 @@
<link rel="stylesheet" href="{% static 'contour/css/styles-beta.css' %}" type="text/css" media="all">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.continuous-event figure img {
.continuous-event img {
max-height: 22px;
position: relative;
top: 4px;
......@@ -37,6 +37,16 @@
.continuous-event .event-data {
display: inline;
}
.continuous-event .event-data .title {
display: inline-block;
padding: 0;
margin: 0;
}
.continuous .continuous-event img {
margin-left: 0;
}
</style>
</head>
......@@ -139,16 +149,14 @@
{% for event in loop.continuous %}
<article class="event continuous-event" data-pk="{{ event.pk }}">
<section class="event-data">
<h4 class="title"><a href="{% url 'contour:event' event.pk %}">
{% if event.project|cover_image %}
{% with event.project|cover_image as image %}
<figure class="preview">
<a href="{% url 'contour:event' event.pk %}">
<img src="{% thumbnail image.image 200x200 crop %}">
</a>
</figure>&nbsp;
{% endwith %}
{% endif %}
<h4 class="title"><a href="{% url 'contour:event' event.pk %}">{{ event.project.title }}</a></h4>
{% with event.project|cover_image as image %}
<img src="{% thumbnail image.image 200x200 crop %}">
{% endwith %}
{% endif %}&nbsp;{{ event.project.title }}</a></h4>
<span class="type">{{ event.event_type }} </span>
<span class="venue">{% trans "at" %}&nbsp;<a href="{% url 'contour:venue' event.venue.pk %}">{{ event.venue }}</a></span>
{% for participant in event.project|sorted_participants|slice:":5" %}
......
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