Skip to content

Commit

Permalink
Display time and venue link for workshops, hide ticket count if cance…
Browse files Browse the repository at this point in the history
…lled

The ticket count is no longer really relevant if they didn't get the ticket
(and it's confusing), and having the time is required for workshops that happen
multiple times.

Fixes #1702
Fixes #1700
  • Loading branch information
lukegb authored and Jonty committed May 30, 2024
1 parent c7e7f95 commit e38030b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/schedule/event_tickets.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
{% if is_draggable %}
{{ octicon("grabber-24") }}<span class="event-ticket-rank">{{ ticket.rank + 1 }}&nbsp;</span>
{% endif %}
<a href="{{ url_for('.item', proposal_id=ticket.proposal.id, year=event_year ) }}">{{ ticket.proposal.title }}</a>
({{ ticket.ticket_count }} tickets)
<a href="{{ url_for('.item', proposal_id=ticket.proposal.id, year=event_year ) }}">{{ ticket.proposal.title }}</a> on <time datetime="{{ ticket.proposal.start_date.strftime('%Y-%m-%dT%H:%M:%S') }}">{{ ticket.proposal.start_date.strftime('%A at %H:%M') }}</time> in <a href="{{ ticket.proposal.map_link }}">{{ ticket.proposal.scheduled_venue.name }}</a>
{% if ticket.state != "cancelled" %}({{ ticket.ticket_count }} tickets){% endif %}
{% if ticket.state == "ticket" %}
<em>Codes for this workshop: {{ticket.ticket_codes |replace(',', ', ') | upper}}</em>
<br><em>Codes for this workshop: {{ticket.ticket_codes |replace(',', ', ') | upper}}</em>
{% endif %}
{% if ticket.state != "cancelled" %}
{{ ticket._form.cancel(class_="btn btn-primary pull-right")}}
Expand Down

0 comments on commit e38030b

Please sign in to comment.