Add separate photo for instructions

This commit is contained in:
Claude Paroz 2018-10-14 18:15:25 +02:00
parent 1f9d5f8291
commit 5843203702
5 changed files with 32 additions and 2 deletions

View file

@ -16,8 +16,13 @@
</div>
{% endif %}
{% if recette.photo_instr %}
<div class="photo"><img src="{{ recette.photo_instr.url }}">
</div>
{% endif %}
{% if recette.photo %}
<div class="photo"><img src="{{ recette.photo.url }}"></div>
<div class="photo"{% if recette.ingredients.count or recette.photo_instr %} style="max-width: 50%"{% endif %}><img src="{{ recette.photo.url }}">
</div>
{% endif %}
{% endblock %}