Skip to content

Commit a3da340

Browse files
committed
do not show ticket edit link for readonly camp tickets
1 parent ae5bdd4 commit a3da340

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/profiles/templates/tickets/ticket_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ <h4>Webshop tickets</h4>
118118
<td>
119119
<a href="{% url 'tickets:ticket_download' pk=ticket.pk %}" class="btn btn-primary"><i
120120
class="fas fa-download" aria-hidden="true"></i> Download PDF</a>
121+
{% if not ticket.product.ticket_type.camp.read_only %}
121122
<a href="{% url 'tickets:shopticket_edit' pk=ticket.pk %}" class="btn btn-primary">
122-
{% if not ticket.product.ticket_type.camp.read_only %}
123123
{% if not ticket.name %}
124124
<i class="fas fa-edit" aria-hidden="true"></i> Set name
125125
{% else %}
126126
<i class="fas fa-edit" aria-hidden="true"></i> Edit name
127127
{% endif %}
128-
{% endif %}
129128
</a>
129+
{% endif %}
130130
</td>
131131
</tr>
132132
</tbody>

0 commit comments

Comments
 (0)