UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
Showing only changes of commit 1991748842 - Show all commits

View File

@ -3,26 +3,31 @@
{% block content_main %} {% block content_main %}
<h2>Tickets</h2> <h2>Tickets</h2>
<table class="table table-no-box">
<tbody> {% if object_list %}
{% for ticket in object_list %} <table class="table table-no-box">
{% url 'tickets:detail' ticket_token=ticket.token as detail_url %} <tbody>
<tr> {% for ticket in object_list %}
{% is_claimed_by ticket request.user as clamed %} {% url 'tickets:detail' ticket_token=ticket.token as detail_url %}
<td> <tr>
<a href="{{ detail_url }}"> {% is_claimed_by ticket request.user as clamed %}
{{ ticket.edition }} ({{ ticket.sku }}) <td>
{% if clamed %} <a href="{{ detail_url }}">
(claimed by you) {{ ticket.edition }} ({{ ticket.sku }})
{% endif %} {% if clamed %}
</a> (claimed by you)
</td> {% endif %}
<td><a href="{{ detail_url }}">{% include "tickets/components/pill_payment_status.html" %}</a></td> </a>
<td>{% include "tickets/ticket_detail_invoice.html" %}</td> </td>
</tr> <td><a href="{{ detail_url }}">{% include "tickets/components/pill_payment_status.html" %}</a></td>
{% empty %} <td>{% include "tickets/ticket_detail_invoice.html" %}</td>
No tickets yet. </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% else %}
<div>
No tickets yet.
</div>
{% endif %}
{% endblock %} {% endblock %}