{% extends "wiki/article.html" %} {% load wiki_tags i18n humanize %} {% block pagetitle %}{% trans "Attachments" as tmsg%}{{tmsg|force_escape}}: {{ article.current_revision.title }}{% endblock %} {% block wiki_contents_tab %}
{% 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." as tmsg%}{{tmsg|force_escape}}
{{ attachment.current_revision.description }}
{% trans "Markdown tag" as tmsg %}{{tmsg|force_escape}} | {% trans "Uploaded by" as tmsg%}{{tmsg|force_escape}} | {% trans "Size" as tmsg%}{{tmsg|force_escape}} | {% trans "File History" as tmsg%}{{tmsg|force_escape}} | {% if attachment|can_write:user %} {% if not attachment.current_revision.deleted %} {% if attachment.article == article %} {% trans "Delete" as tmsg %}{{tmsg|force_escape}} {% else %} {% trans "Detach" as tmsg %}{{tmsg|force_escape}} {% endif %} {% trans "Replace" as tmsg %}{{tmsg|force_escape}} {% else %} {% if attachment.current_revision.previous_revision.id %} {% endif %} {% endif %} {% endif %} |
---|---|---|---|---|
[attachment:{{ attachment.id }}] |
{% if attachment.current_revision.user %}{{ attachment.current_revision.user }}{% else %}{% if user|is_moderator %}{{ attachment.current_revision.ip_address|default:"anonymous (IP not logged)" }}{% else %}{% trans "anonymous (IP logged)" as tmsg%}{{tmsg|force_escape}}{% endif %}{% endif %} | {{ attachment.current_revision.get_size|filesizeformat }} | {% trans "File history" as tmsg%}{{tmsg|force_escape}} ({{ attachment.attachmentrevision_set.all.count }} {% trans "revisions" as tmsg %}{{tmsg|force_escape}}) |
{% trans "There are no attachments for this article." as tmsg %}{{tmsg|force_escape}}
{% endfor %}