Unverified Commit 872df1e4 by John Eskew Committed by GitHub

Merge pull request #16647 from edx/jeskew/custom_template_loader_fixes

Change template's deprecated '=' comparison to '=='.
parents 8d1053ee 6777e366
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<td class="attachment-actions"> <td class="attachment-actions">
{% if attachment|can_write:user %} {% if attachment|can_write:user %}
{% if not attachment.current_revision.deleted %} {% 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> <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 %} {% else %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Detach" %}</a> <a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Detach" %}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment