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

{% if photo.description %} {{ photo.description }} {% endif %} {% if current_user == photo.author %} 编辑简介 {% endif %}

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

{% if photo.tags %} {% for tag in photo.tags %} {{ tag.name }} {% endfor %} {% endif %} {% if current_user == photo.author %} 编辑标签 {% endif %}

{% if current_user == photo.author %}
{{ tag_form.csrf_token }} {{ render_field(tag_form.tag) }} 取消 {{ render_field(tag_form.submit, class='btn btn-success btn-sm') }}
{% if photo.tags %}
{% for tag in photo.tags %} {{ tag.name }} {% endfor %} {% endif %}
{% endif %} {% if current_user.is_authenticated %} {% if current_user.is_collecting(photo) %}
{% else %}
{% endif %} {% else %}
{% endif %} {% if photo.collectors %} {{ photo.collectors|length }} 收藏者 {% endif %}