Use 16_9 picture for project thumbnail

This allows us to use picture_header as an actual header from now on.
This commit is contained in:
2019-04-19 13:00:04 +02:00
parent c0cb80ceec
commit 947dab3185

View File

@@ -42,11 +42,11 @@ include mixins/components
data-url="{{ url_for('projects.view', project_url=project.url) }}", data-url="{{ url_for('projects.view', project_url=project.url) }}",
tabindex='{{ loop.index }}') tabindex='{{ loop.index }}')
| {% if project.picture_header %} | {% if project.picture_16_9 %}
a.card-thumbnail(href="{{ url_for('projects.view', project_url=project.url) }}") a.card-thumbnail(href="{{ url_for('projects.view', project_url=project.url) }}")
img.card-img-top( img.card-img-top(
alt="{{ project.name }}", alt="{{ project.name }}",
src="{{ project.picture_header.thumbnail('l', api=api) }}") src="{{ project.picture_16_9.thumbnail('l', api=api) }}")
| {% endif %} | {% endif %}
.card-body .card-body