Fixed two cases of templates using '=' in tests instead of '=='.
- Legacy-Id: 12679
This commit is contained in:
parent
fd2304e446
commit
4c86cfc63d
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue