{% extends "wiki/article.html" %} {% load wiki_tags i18n humanize %} {% block pagetitle %}{% trans "Attachments" %}: {{ article.current_revision.title }}{% endblock %} {% block wiki_contents_tab %}

{% trans "The following files are available for this article. Copy the markdown tag to directly refer to a file from the article text." %}

{% for attachment in attachments %} {% empty %} {% endfor %}

{{ attachment.current_revision.get_filename }} {{ attachment.current_revision.created|naturaltime }} {% if attachment.current_revision.deleted %} {% trans "deleted" %} {% endif %}

{% trans "Markdown tag" %} {% trans "Uploaded by" %} {% trans "Size" %} {% if attachment|can_write:user %}

{% if not attachment.current_revision.deleted %} {% trans "Replace" %} {% if 'attachment.article = article' %} {% trans "Delete" %} {% else %} {% trans "Detach" %} {% endif %} {% else %} {% if attachment.current_revision.previous_revision.id %}

{% csrf_token %}
{% endif %} {% endif %}

{% endif %}

{% trans "File history" %} ({{ attachment.attachmentrevision_set.all.count }} {% trans "revisions" %})

[attachment:{{ attachment.id }}] {% include "wiki/includes/revision_info.html" with revision=attachment.current_revision hidedate=1 hidenumber=1 %} {{ attachment.current_revision.get_size|filesizeformat }}

{% trans "There are no attachments for this article." %}

{% if article|can_write:user %}
{% if anonymous_disallowed %} {% include "wiki/includes/anonymous_blocked.html" %} {% else %}
{% wiki_form form %}
{% endif %}

{% trans "You can reuse files from other articles. These files are subject to updates on other articles which may or may not be a good thing." %}

{% endif %}
{% endblock %}