improved keyword rendering in search + plan

This commit is contained in:
vabene1111
2020-06-02 11:06:16 +02:00
parent 87ba53fde9
commit bc8f8b8138
2 changed files with 7 additions and 3 deletions

View File

@@ -52,7 +52,9 @@
{% if plan.recipe.keywords %}
<br/>
<br/>
{{ plan.recipe.all_tags }}
{% for x in plan.recipe.keywords.all %}
<span class="badge badge-pill badge-light">{{ x }}</span>
{% endfor %}
{% endif %}
</div>
</div>

View File

@@ -33,8 +33,10 @@
{% recipe_rating row.record request.user as rating %}
{{ rating|safe }}
</h5>
<p class="card-text{% if not row.record.all_tags %} d-none d-lg-block{% endif %}">
{{ row.cells.all_tags }}
<p class="card-text{% if not row.record.keywords %} d-none d-lg-block{% endif %}">
{% for x in row.record.keywords.all %}
<span class="badge badge-pill badge-light">{{ x }}</span>
{% endfor %}
</p>
<p class="card-text"><small class="text-muted">
{% if row.cells.working_time != 0 %}