Add separate photo for instructions
This commit is contained in:
parent
1f9d5f8291
commit
5843203702
5 changed files with 32 additions and 2 deletions
|
|
@ -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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue