Skip to content

Commit aff8e5c

Browse files
author
Bojan Jovanovic
committed
Optional tickets, fetches from conference admin page
1 parent 5c02422 commit aff8e5c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyconbalkan/conference/templates/home.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ <h2 class="centered">
195195
{% endif %}
196196

197197
{# Buy Tickets #}
198-
199-
<div class="card"><a class="button button--yellow mb-xs-80" href="https://www.eventbrite.com/e/pycon-balkan-tickets-46608685834" target="_blank" role="button">Buy Tickets</a></div>
198+
{% if request.conference.tickets %}
199+
<div class="card"><a class="button button--yellow mb-xs-80" href="{{ request.conference.tickets }}" target="_blank" role="button">Buy Tickets</a></div>
200+
{% endif %}
200201

201202
{% endblock %}

pyconbalkan/core/templates/includes/header.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939
<li class="menu__list__item">
4040
<a class="menu__list__link {% if request.path == '/contact' %}active{% endif %}" href="/contact" role="button">Contact</a>
4141
</li>
42+
{% if request.conference.tickets %}
4243
<li class="menu__list__item">
43-
<a class="menu__list__link menu__list__link--featured" href="https://www.eventbrite.com/e/pycon-balkan-tickets-46608685834"
44+
<a class="menu__list__link menu__list__link--featured" href="{{ request.conference.tickets }}"
4445
target="_blank" role="button">Buy Tickets</a>
4546
</li>
47+
{% endif %}
4648
</ul>
4749
</nav>
4850
</header>

0 commit comments

Comments
 (0)