{% extends "base.html" %} {% block content %} {% with messages = get_flashed_messages() %} {% for message in messages %} {% endfor %} {% endwith %}
Category: {{ photo.category.name if photo.category is not none else 'None' }}
{% if current_user.id == photo.user_id or current_user.admin %}
{% endif %} {% if current_user.id == photo.user_id %}
{% endif %}
{% if not config.DISABLE_COMMENTS %}
Comments
{% if photo.comments is not none %} {% for comment in photo.comments %}

{{ comment.text }}

{{ comment.user.name }}
{% endfor %} {% else %}

There are no comments on this photo yet.

{% endif %}
{% endif %} {% endblock %}