Commit a65763d6 authored by gijs's avatar gijs

Added centered class, restored links to events from contributor page

parent f39cbbb9
......@@ -552,6 +552,10 @@ p, h4 {
hyphens: auto;
}
.centered {
text-align: center;
}
@media only screen and (min-width: 600px) {
.loop-days-wrapper {
display: flex;
......
......@@ -45,7 +45,7 @@
<object data="{% static 'contour/images/timeline.svg' %}" type="image/svg+xml"></object>
</section>
<main class="contributor" data-active-panel="{% if targeted %}article{% else %}nav{% endif %}" data-panel-container>
{% spaceless %}
<!-- {% spaceless %} -->
<article id="bio-container" class="contributors-detail" data-panel="article">
<div class="panel-toggle">
<div class="panel-toggle-handle">
......@@ -57,17 +57,18 @@
<h3 class="contributor">{{ contributor.name }}</h3>
{% for project in contributor.projects.all %}
{% if forloop.first %}
<em>{% trans "contributes to" %}</em>
<em>&nbsp;{% trans "contributes to" %}</em>
{% endif %}
{% if project.event_set.count > 0 %}
<a href="{% url 'contour:event' project.event_set.first.pk %}">
{% if project.events.count > 0 %}
<a href="{% url 'contour:event' project.events.first.pk %}">
<h4 class="title">
{{ project.title }}
{% if not forloop.last %},{% endif %}
{{ project.title }}{% if not forloop.last %},{% endif %}
</h4>
</a>
{% else %}
<h4 class="title">{{ project.title }}</h4>
<h4 class="title">
{{ project.title }}{% if not forloop.last %},{% endif %}
</h4>
{% endif %}
{% endfor %}
</section>
......@@ -88,7 +89,7 @@
</ul>
</section>
</nav>
{% endspaceless %}
<!-- {% endspaceless %} -->
</main>
<script src="{% static 'contour/js/panels.js' %}"></script>
<script>
......
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