{% from 'macros.html' import follow_area with context %}

{% if photo.description %} {{ photo.description }} {% else %} No description {% endif %} {% if current_user == photo.author %} {{ render_icon('pencil-fill') }} {% endif %}

{% if current_user == photo.author %}
{{ description_form.csrf_token }} {{ render_field(description_form.description) }} Cancel {{ render_field(description_form.submit, class='btn-success btn-sm description-submit-btn') }}
{% endif %}

{% if photo.tags %} {% for tag in photo.tags %} {{ render_icon('tag-fill') }} {{ tag.name }} {% endfor %} {% else %} No tags {% endif %} {% if current_user == photo.author %} {{ render_icon('pencil-fill') }} {% endif %}

{% if current_user == photo.author %}
{{ tag_form.csrf_token }} {{ render_field(tag_form.tag) }} Cancel {{ render_field(tag_form.submit, class='btn btn-success btn-sm') }}
{% if photo.tags %}
{% for tag in photo.tags %} {{ tag.name }} {{ render_icon('trash-fill') }} {% endfor %} {% endif %}
{% endif %} {% if photo.collections %} {{ photo.collectors_count }} collectors {% endif %}