Summary: Only show change IESG state link when the view allows it to

be changed
 - Legacy-Id: 10122
This commit is contained in:
Ole Laursen 2015-10-02 08:30:23 +00:00
parent 08500ec743
commit d40e838dd8

View file

@ -291,7 +291,7 @@
<th>IESG</th>
<th><a href="{% url "ietf.help.views.state" doc=doc.type.slug type="iesg" %}">IESG state</a></th>
<td class="edit">
{% if iesg_state and can_edit and not snapshot %}
{% if started_iesg_process and iesg_state and iesg_state.slug != "expired" and can_edit and not snapshot %}
<a class="btn btn-default btn-xs" href="{% url "doc_change_state" name=doc.name %}">Edit</a>
{% endif %}
</td>