Fixed two cases of templates using '=' in tests instead of '=='.

- Legacy-Id: 12679
This commit is contained in:
Henrik Levkowetz 2017-01-19 17:30:27 +00:00
parent fd2304e446
commit 4c86cfc63d
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@
{% if not snapshot and user|has_role:"Area Director,Secretariat" %}
{% if request.user|has_role:"Secretariat" %}
{% if doc.get_state_slug = 'appr-reqnopub-pend' or doc.get_state_slug = 'appr-noprob-pend' %}
{% if doc.get_state_slug == 'appr-reqnopub-pend' or doc.get_state_slug = 'appr-noprob-pend' %}
<a class="btn btn-primary" href="{% url "conflict_review_approve" name=doc.name %}">Approve conflict review</a>
{% endif %}
{% endif %}

View file

@ -149,7 +149,7 @@
{% endif %}
{% endif %}
{% if request.user|has_role:"Secretariat" and doc.get_state_slug = 'appr-pend' %}
{% if request.user|has_role:"Secretariat" and doc.get_state_slug == 'appr-pend' %}
<a class="btn btn-warning" href="{% url "status_change_approve" name=doc.name %}">Approve RFC status change</a>
{% endif %}
</p>