Skip to content

Commit 3b2e2ea

Browse files
Merge pull request ietf-tools#3622 from larseggert/unify-buttons
fix: Switch to showing a single "Edit materials" button
2 parents bbf1996 + b1deed3 commit 3b2e2ea

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

ietf/templates/meeting/proceedings/materials_table.html

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ <h2 class="mt-3" id="proceedings-materials">Proceedings Materials</h2>
1010
<th data-sort="type">Type</th>
1111
<th data-sort="title">Title</th>
1212
<th data-sort="updated">Updated</th>
13-
{% if user|has_role:'Secretariat' %}
14-
<th></th>
15-
{% endif %}
1613
</tr>
1714
</thead>
1815
<tbody>
@@ -35,17 +32,17 @@ <h2 class="mt-3" id="proceedings-materials">Proceedings Materials</h2>
3532
{% else %}
3633
<td colspan="2"></td>
3734
{% endif %}
38-
{% if user|has_role:'Secretariat' %}
39-
<td class="text-end">
40-
<a class="btn btn-sm btn-primary"
41-
href="{% url 'ietf.meeting.views_proceedings.material_details' num=meeting.number %}">
42-
Edit materials
43-
</a>
44-
</td>
45-
{% endif %}
4635
</tr>
4736
{% endif %}
4837
{% endfor %}
4938
</tbody>
5039
</table>
51-
{% endif %}
40+
41+
{% if user|has_role:'Secretariat' %}
42+
<a class="btn btn-primary"
43+
href="{% url 'ietf.meeting.views_proceedings.material_details' num=meeting.number %}">
44+
Edit materials
45+
</a>
46+
{% endif %}
47+
48+
{% endif %}

0 commit comments

Comments
 (0)