{% load crispy_forms_tags %} {% load i18n %} {% load django_tables2 %} {% load static %} {% load custom_tags %} {% block content %}
{% block table %} {% for row in table.paginated_rows %}
{{ row.cells.name }} {% recipe_rating row.record request.user as rating %} {{ rating|safe }}
{%if row.record.description|length > 0 %}

{{ row.cells.description }}

{% endif %}

{% for x in row.record.keywords.all %} {{ x }} {% endfor %}

{% if row.cells.working_time != 0 %} {% trans 'Preparation time ca.' %} {{ row.cells.working_time }} min {% endif %} {% if row.cells.waiting_time != 0 %} {% trans 'Waiting time ca.' %} {{ row.cells.waiting_time }} min {% endif %} {% if not row.record.internal %} {% trans 'External' %} {% endif %} {% recipe_last row.record request.user as last_cooked %} {% if last_cooked %} {% trans 'Last cooked' %} {{ last_cooked|date }} {% endif %}

{% endfor %}
{% endblock table %}
{% block pagination %} {% if table.page and table.paginator.num_pages > 1 %} {% endif %} {% endblock pagination %} {% endblock content %}