testing around

This commit is contained in:
vabene1111
2020-07-01 23:22:29 +02:00
parent adbc7e4a39
commit 0005ca243c
2 changed files with 284 additions and 266 deletions

View File

@@ -215,7 +215,19 @@
{% if recipe.steps.all|length > 1 %}
<div class="row">
<div class="col-md-12 text-muted">
<small>{% trans 'Step' %} {{ forloop.counter }}{% if s.name %} - {{ s.name }}{% endif %}</small>
<small>
{% if s.type == 'TEXT' %}
<i class="fas fa-paragraph fa-fw"></i>
{% elif s.type == 'TIME' %}
<i class="fas fa-clock fa-fw"></i>
{% endif %}
{% if s.name %}{{ s.name }}{% else %}{% trans 'Step' %}
{{ forloop.counter }}{% endif %}
{% if s.type == 'TIME' %}
- {{ s.time }} {% trans 'Minutes' %}
{% endif %}
</small>
</div>
</div>
{% endif %}
@@ -246,7 +258,6 @@
width="100%"
height="700px"
style="border: none;"></iframe>
</div>
{% endif %}
{% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}