{% extends "wiki/article.html" %} {% load wiki_tags i18n humanize %} {% load url from future %} {% 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." %}
{% 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 %} |
[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." %}
{% endfor %}{% 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." %}
{{ attachment.current_revision.get_filename }} {% if attachment.current_revision.previous_revision.id %}
{% endif %} {% empty %}{% trans "Nothing to restore" %}
{% endfor %}{% trans "The article is currently locked for editing, and therefore no new attachments can be added." %}
{% endif %} {% endif %}