Merge pull request #15690 from edx/christina/django-wiki-upgrade

Django-wiki upgrades.
This commit is contained in:
Christina Roberts
2017-08-01 15:37:46 -04:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@
<td class="attachment-actions">
{% if attachment|can_write:user %}
{% if not attachment.current_revision.deleted %}
{% if attachment.article = article %}
{% if 'attachment.article = article' %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-danger">{% trans "Delete" %}</a>
{% else %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Detach" %}</a>