django-project/recipes/templates/recipes.html
2023-03-19 19:12:57 +01:00

12 lines
306 B
HTML

{% extends "base_main.html" %}
{% block title %}Recipes{% endblock %}
{% block main %}
<h1>Recipes</h1>
<p><a href="{% url 'add-recipe' %}">Add recipe</a></p>
<ul>
{% for recipe in recipes %}
<li><a href="{{ recipe.get_absolute_url }}">{{ recipe.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}