{% include 'cosinnus/media_tags_readonly.html' with object=object list_view="noindent" %}
{% if object.attached_images %}
{% include 'cosinnus/common/attached_images_gallery.html' with object=object max_images=3 %}
{% endif %}
{% if user|has_read_access:object or object.media_tag.visibility == 2 %}
{% endif %}
{% if user|has_write_access:object %}
{% endif %}
{% if user|has_write_access:object %}
{% captureas label %}{% blocktrans with pad=object.title %}Do you really want to delete etherpad „{{ pad }}“?{% endblocktrans %}{% endcaptureas %}
{% captureas title %}{% trans "Delete Etherpad" %}{% endcaptureas %}
{% group_url "cosinnus:etherpad:pad-delete" group=group slug=etherpad.slug as delete_url %}
{% include "cosinnus/modal_box.html" with id="deleteModal" label=label title=title form_action=delete_url %}
{% endif %}
{% include 'cosinnus/feedback/report_button_btn.html' with object=etherpad %}
{% with content=etherpad.get_content %}
{% if content == None %}
({% trans "The document can not be accessed because the etherpad server could not be reached. Please contact an administrator!" %})
{% elif not content %}
({% trans "This document is empty" %})
{% else %}
{{ content|safe|url_target_blank }}
{% endif %}
{% endwith %}