ReDab Public Development Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
1.4 KiB

{% extends "layout.html" %}
{% macro create_recipe_row(recipe) -%}
<tr>
<td>{{recipe.id}}</td>
<td>
<a href="/rezept/{{recipe.id}}">
{{recipe.name}}
<a>
</td>
<td>{{recipe.description}}</td>
<td class="center-align">{{recipe.servings}}</td>
<td class="center-align">
<i class="material-icons contains-meat-or-meat-products">
{% if recipe.contains_meat_or_meat_products %}
clear
{% endif %}
</i>
</td>
<td class="center-align">
<i class="material-icons contains-fish">
{% if recipe.contains_fish %}
clear
{% endif %}
</i>
</td>
<td class="center-align">
<i class="material-icons contains-animal-products">
{% if recipe.contains_animal_products %}
clear
{% endif %}
</i>
</td>
<td>
{% if recipe.preparation_time != 0 %}
{{recipe.preparation_time}} Minuten
{% endif %}
</td>
</tr>
{%- endmacro %}
{% block content %}
<table class="highlight striped">
<tr>
<th>#</th>
<th>name</th>
<th>beschreibung</th>
<th class="center-align">portionen</th>
<th class="center-align">fleisch</th>
<th class="center-align">fisch</th>
<th>tierprodukte</th>
<th><i class="material-icons">schedule</i></th>
</tr>
{% for recipe in recipes -%}
{{ create_recipe_row(recipe) }}
{%- endfor %}
</table>
{% endblock %}