Skip to content

Commit

Permalink
Merge pull request #106 from swoloszynski/issue-105-remove-2019-onlin…
Browse files Browse the repository at this point in the history
…e-ticketing

Issue 105 remove 2019 online ticketing, closes #105
  • Loading branch information
Sam committed Feb 23, 2019
2 parents 12f0873 + 2940b77 commit d7a28b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions _data/global.yml
Expand Up @@ -23,7 +23,11 @@ rsvp_deadline: 11:59pm on February 22nd
online_ticket_deadline: 11:59pm on February 22nd

ticket_url: https://securelb.imodules.com/s/1535/16-uva/index.aspx?sid=1535&gid=16&pgid=20641&cid=35424
# show_online_ticketing: false will show "coming soon" message
show_online_ticketing: true
# show_online_ticketing: true AND online_ticketing_closed: true will
# show "online ticketing closed; door-only" message
online_ticketing_closed: true

show_facebook_event: false
show_alert: false
Expand Down
21 changes: 15 additions & 6 deletions _includes/tickets.html
Expand Up @@ -10,13 +10,22 @@ <h2 class="featurette-heading light-orange">How do I get tickets? <span class="t


{% if site.data.global.show_online_ticketing %}
<div class="jumbotron jumbotron-custom">
<p><a class="btn btn-lg btn-success cushion" href="{{ site.data.global.ticket_url }}" role="button" target="_blank" rel="noopener">Get tickets!</a></p>
</div>
<p class="lead schedule-time cushion">Tickets are available online and at the door on a first-come, first-serve basis. Online ticketing will close at {{ site.data.global.online_ticket_deadline }}.</p>
<p class="lead schedule-time cushion">Event attendance is expected to reach capacity. Please consider purchasing a ticket in advance to avoid being turned away at the door if tickets are sold out.</p>
{% if site.data.global.online_ticketing_closed %}
<div class="jumbotron jumbotron-custom">
<p><a class="btn btn-lg btn-success cushion disabled" role="button" target="_blank" rel="noopener">Online ticketing has closed</a></p>
</div>

<p class="lead schedule-time cushion">Tickets are available at the door on a first-come, first-serve basis. Cash and credit cards accepted.</p>
{% else %}

<div class="jumbotron jumbotron-custom">
<p><a class="btn btn-lg btn-success cushion" href="{{ site.data.global.ticket_url }}" role="button" target="_blank" rel="noopener">Get tickets!</a></p>
</div>
<p class="lead schedule-time cushion">Tickets are available online and at the door on a first-come, first-serve basis. Online ticketing will close at {{ site.data.global.online_ticket_deadline }}.</p>
<p class="lead schedule-time cushion">Event attendance is expected to reach capacity. Please consider purchasing a ticket in advance to avoid being turned away at the door if tickets are sold out.</p>
{% endif %}

{% else %}
<p class="lead schedule-time cushion">Tickets at the door are cash only.</p>
<div class="jumbotron jumbotron-custom">
<p><a class="btn btn-lg btn-success cushion disabled" role="button" target="_blank" rel="noopener">Online tickets coming soon</a></p>
</div>
Expand Down

0 comments on commit d7a28b4

Please sign in to comment.