Skip to content

Commit 4c86cfc

Browse files
committed
Fixed two cases of templates using '=' in tests instead of '=='.
- Legacy-Id: 12679
1 parent fd2304e commit 4c86cfc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/doc/document_conflict_review.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ <h2>Conflict review<br><small>{{ conflictdoc.name }}-{{ conflictdoc.rev }}</smal
134134

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

ietf/templates/doc/document_status_change.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
{% endif %}
150150
{% endif %}
151151

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

0 commit comments

Comments
 (0)