{% extends "food_planner/base.html" %}
{% load i18n %}

{% block title %}{{ site.title }} - {% trans "Home" %}{% endblock %}

{% block content %}
    <h1>{% trans "Meal plans" %}</h1>

    <table class="table">
        <thead>
            <tr>
                <th scope="col">{% trans "Name" %}</th>
            </tr>
        </thead>
        <tbody>
        {% for mealplan in mealplans %}
            <tr>
                <td><a href="{% url 'food_planner:mealplan' mealplan.author.id mealplan.name %}">{{ mealplan.name }}</a></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}
