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