Add ability to toggle CFP and ticket sales

This commit is contained in:
Oliver Davies 2019-05-02 23:25:06 +01:00
parent 9bd5a64fa8
commit ef28b6b498
3 changed files with 24 additions and 7 deletions

View file

@ -19,13 +19,17 @@ update_text: Session submissions are now open!
</div>
<div class="md:tw-flex md:tw-justify-center tw-mt-8 tw-leading-snug">
<a class="tw-button tw-bg-pink-600 tw-mb-4 md:tw-mb-0" href="{{ site.eventbrite.url }}">
Buy tickets
</a>
{% if site.tickets.available %}
<a class="tw-button tw-bg-pink-600 tw-mb-4 md:tw-mb-0" href="{{ site.eventbrite.url }}">
Buy tickets
</a>
{% endif %}
<a class="tw-button tw-bg-purple-600" href="{{ site.papercall.url }}">
Submit a session
</a>
{% if site.cfp.open %}
<a class="tw-button tw-bg-purple-600" href="{{ site.papercall.url }}">
Submit a session
</a>
{% endif %}
</div>
</div>
</div>