fix: Switch to showing a single "Edit materials" button

Fixes #3594.
This commit is contained in:
Lars Eggert 2022-03-11 13:29:35 +02:00
parent e0f232dc37
commit b1deed3aa2
No known key found for this signature in database
GPG key ID: 54B5C309BF70C157

View file

@ -10,9 +10,6 @@
<th data-sort="type">Type</th>
<th data-sort="title">Title</th>
<th data-sort="updated">Updated</th>
{% if user|has_role:'Secretariat' %}
<th></th>
{% endif %}
</tr>
</thead>
<tbody>
@ -35,17 +32,17 @@
{% else %}
<td colspan="2"></td>
{% endif %}
{% if user|has_role:'Secretariat' %}
<td class="text-end">
<a class="btn btn-sm btn-primary"
href="{% url 'ietf.meeting.views_proceedings.material_details' num=meeting.number %}">
Edit materials
</a>
</td>
{% endif %}
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% if user|has_role:'Secretariat' %}
<a class="btn btn-primary"
href="{% url 'ietf.meeting.views_proceedings.material_details' num=meeting.number %}">
Edit materials
</a>
{% endif %}
{% endif %}