{% if may_reflect and reflectable_groups %}
{# *********** Reflect event in projects *************** #}
{% include 'cosinnus/common/reflect/reflected_object_select_link.html' with only_modal=True select_icon="fa-calendar-plus-o" unique_id=note.id %}
{% endif %}
{% if user|has_write_access:note %}
{% captureas modal_id %}deleteNote_{{note.pk}}{% endcaptureas %}
{% captureas title %}{% trans "Delete note" %}{% endcaptureas %}
{% captureas label %}{% trans "Do you really want to delete this note?" %}{% endcaptureas %}
{% captureas action %}{% group_url 'cosinnus:note:delete' group=note.group slug=note.slug%}{% endcaptureas %}
{% include "cosinnus/modal_box.html" with id=modal_id label=label title=title form_action=action %}
{% endif %}
{% if note.title and not note.title == '---' %}
{{ note.title|urlizetrunc:25|url_target_blank }}
{% endif %}
{{ note.text|textfield }}
{% if note.video %}
{% include 'cosinnus/common/embed_youtube.html' with video_id=note.video_id %}
{% endif %}
{% if note.attached_images %}
{% include 'cosinnus/common/attached_images_gallery.html' with object=note max_images=3 %}
{% endif %}
{% include 'cosinnus/media_tags_readonly.html' with object=note list_view="True" %}
{% comment %} This is how the proper attachment should be styled
{% endcomment %}
{% include 'cosinnus_note/note_comments.html' with note=note full_view="True" comments_expanded="True" %}