{% extends "wiki/article.html" %} {% load wiki_tags i18n humanize %} {% block wiki_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." %}

{% blocktrans trimmed %} Complete markdown code syntax: [attachment:id title:"text" size]
  title: Link text replacement for the file name. size: Show file size after the title. {% endblocktrans %}

{% for attachment in attachments %}

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

{{ attachment.current_revision.description }}
{% 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 %} Deleted {% 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 }}
{% empty %}

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

{% endfor %}
{% if article|can_write:user and not article|is_locked %}
{% 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." %}

{{ search_form.query }}
{% if article|can_write:user %}
{% for attachment in deleted_attachments %}

{{ attachment.current_revision.get_filename }} {% if attachment.current_revision.previous_revision.id %}

{% csrf_token %}
{% endif %}

{% empty %}

{% trans "Nothing to restore" %}

{% endfor %}
{% endif %} {% else %} {% if article|is_locked %}

{% trans "The article is currently locked for editing, and therefore no new attachments can be added." %}

{% endif %} {% endif %}
{% endblock %}