{% extends "base.html" %} {% block content %}

{% if current_user.is_admin %}Recipe Management{% else %}My Recipes{% endif %}

{% if current_user.is_admin %} Manage Users {% endif %} Add New Recipe Logout
{% for recipe in recipes %} {% endfor %}
Title Created By Actions
{{ recipe.title }} {{ recipe.author.username if recipe.author else 'Unknown' }} {% if current_user.is_admin or recipe.user_id == current_user.id %} Edit Delete {% endif %}
{% endblock %}