SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6041c731 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct proceedings `_description.html` image rendering

parent 54ae2893
No related branches found
No related tags found
No related merge requests found
{% if proceedings.cover_image %} {% if proceedings.cover_image %}
<div class="row"> <div class="row">
<div class="col-lg-9"> <div class="col-md-10">
{% endif %} {% endif %}
{% if proceedings.logo %} {% if proceedings.logo %}
<div class="row"> <div class="row">
<div class="col-10"> <div class="col-md-10">
{% endif %} {% endif %}
<h3>{{ proceedings.event_name }} {% if proceedings.event_suffix %}({{ proceedings.event_suffix }}){% endif %}</h3> <h3>{{ proceedings.event_name }} {% if proceedings.event_suffix %}({{ proceedings.event_suffix }}){% endif %}</h3>
<div class="mb-4"> <div class="mb-4">
...@@ -13,15 +13,15 @@ ...@@ -13,15 +13,15 @@
</div> </div>
{% if proceedings.logo %} {% if proceedings.logo %}
</div> </div>
<div class="col-lg-2"> <div class="col-md-2">
<img class="d-flex me-3" src="{{ proceedings.logo.url }}" alt="logo"/> <img style="max-width: 100%;" class="d-flex me-3" src="{{ proceedings.logo.url }}" alt="logo"/>
</div> </div>
</div> </div>
{% endif %} {% endif %}
<p>{{ proceedings.event_description|safe|linebreaksbr }}</p> <p>{{ proceedings.event_description|safe|linebreaksbr }}</p>
{% if proceedings.picture %} {% if proceedings.picture %}
<figure class="mx-4 my-2"> <figure class="mx-4 my-2">
<img src="{{ proceedings.picture.url }}" alt="picture"/> <img style="max-width: 100%;" src="{{ proceedings.picture.url }}" alt="picture"/>
{% if proceedings.picture_credit %}<figcaption>{{ proceedings.picture_credit }}</figcaption>{% endif %} {% if proceedings.picture_credit %}<figcaption>{{ proceedings.picture_credit }}</figcaption>{% endif %}
</figure> </figure>
<br> <br>
...@@ -48,9 +48,8 @@ ...@@ -48,9 +48,8 @@
{% if proceedings.cover_image %} {% if proceedings.cover_image %}
</div> </div>
<div class="col-lg-1"></div> <div class="col-md-2">
<div class="col-lg-2"> <img style="max-width: 100%;" class="d-flex me-3" src="{{ proceedings.cover_image.url }}" alt="cover_image"/>
<img class="d-flex me-3" src="{{ proceedings.cover_image.url }}" alt="cover_image"/>
</div> </div>
</div> </div>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment