{{ icon("dots-vertical") }}
{{ _("Attachments") }}
-
{% for attachment in page.attachments %}
- {{ file_icon(attachment.name) }} {{ attachment.name }}{{ attachment.content_length | filesize }} {% endfor %}
{#- A wiki page as it reads: its text, the links to other pages (a page not written
yet dashed), its files, who changed it last; editing in sight, the rest behind ⋮.
Drawn in `mockups/templates/wiki-page.html`. -#}
{% extends "wiki/_base.html" %}
{% import "wiki/macros.html" as w with context %}
{% set last = page.last_revision %}
{% set kw = {"community_id": g.community.slug, "title": page.title} %}
{% block wiki_title %}{{ page.title }}{% endblock %}
{% block wiki_content %}
{{ icon("dots-vertical") }}
{{ _("Attachments") }}
{% for attachment in page.attachments %}
{{ _("Its text and its history go for everyone in the community. This cannot be undone.") }}
{% endcall %} {% for attachment in page.attachments %} {% call w.dialog("modal-delete-attachment-%d" % attachment.id, _("Delete “%(name)s”?", name=attachment.name), url_for(".attachment_delete", attachment=attachment.id, **kw), danger=true) %}{{ _("It goes for everyone in the community. This cannot be undone.") }}
{% endcall %} {% endfor %} {% endblock %}