{% extends "admin/admin_base.html" %} {% load i18n %} {% block admin_title %}{% trans "Recipes" %}{% endblock %} {% block content %}
{% trans "Recipe Management" %}
add {% trans "Add Recipe" %}
{% for recipe in recipes %} {% endfor %}
{% trans "ID" %} {% trans "Image" %} {% trans "Title" %} {% trans "Rating" %} {% trans "Tags" %} {% trans "Uploader" %} {% trans "Created" %} {% trans "Actions" %}
{{ recipe.id }} {% if recipe.image %} {% else %}
restaurant
{% endif %}
{{ recipe.title }}
star {{ recipe.avg_rating|default:0|floatformat:1 }}
{% for tag in recipe.tags.all %} {{ tag.name }} {% endfor %} {{ recipe.uploaded_by.username|default:"-" }} {{ recipe.created_at|date:"SHORT_DATE_FORMAT" }} delete
{% endblock %}