Skip to content

Commit

Permalink
Merge pull request #65 from pyvec/hide-tickets
Browse files Browse the repository at this point in the history
Hide tickets
  • Loading branch information
jsmitka committed Sep 18, 2023
2 parents 1b1c1d1 + 7659b8d commit 6592c6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion templates/_menu_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
{% endblock %}

{% block link_tickets %}
{% comment %}{% include '__nav_link.html' with url='tickets' link_text='Tickets' highlighted='1' %}{% endcomment %}
{% comment %}
{% include '__nav_link.html' with url='tickets' link_text='Tickets' %}
{% if phases.ticket_sale == 'launched' %}{% endif %}
{% endcomment %}
{% endblock %}

{% block sessions %}
Expand Down
4 changes: 2 additions & 2 deletions templates/pages/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


{% block header_action %}
{% comment %}<p class="fw-semibold fs-4">We have postponed late bird pricing for a week!</p>{% endcomment %}
{% comment %}<p class="fw-semibold fs-4">We have postponed late bird pricing for a week!</p>
<a href="{% url 'tickets' %}" class="btn btn-primary btn-lg">
{% comment %}Buy tickets before 4 September!{% endcomment %}
Tickets still available
</a>
{% endcomment %}
{% endblock %}


Expand Down
3 changes: 2 additions & 1 deletion urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
path("cfp-guide/", TemplateView.as_view(template_name='pages/cfp_guide.html'), name='cfp_guide'),
path("cfp-pruvodce/", TemplateView.as_view(template_name='pages/cfp_pruvodce.html'), name='cfp_pruvodce'),
path("sponsorship/", TemplateView.as_view(template_name='pages/sponsorship.html'), name='sponsorship'),
path("tickets/", TemplateView.as_view(template_name='pages/tickets.html'), name='tickets'),
# Original view for tickets: TemplateView.as_view(template_name='pages/tickets.html')
path("tickets/", RedirectView.as_view(pattern_name="homepage"), name='tickets'),
path("financial-aid/", TemplateView.as_view(template_name='pages/financial-aid.html'), name='financial_aid'),
path("financial-aid-grantees/", TemplateView.as_view(template_name='pages/financial-aid-grantees.html'), name='financial_aid_grantees'),
path("venue/", TemplateView.as_view(template_name='pages/venue.html'), name='venue'),
Expand Down

0 comments on commit 6592c6d

Please sign in to comment.