Skip to content

Commit e3e6e75

Browse files
committed
Enable ability to disable tickets menu item
Add Ansible variable that enables removing the "Tickets" menu item. Update the Ansible template that is used to generate the base Pretalx template (see #1162) to support this new variable.
1 parent 371d916 commit e3e6e75

File tree

2 files changed

+2
-1
lines changed
  • ansible

2 files changed

+2
-1
lines changed

ansible/group_vars/all

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ email_host_user: [email protected]
1111
email_host_password: ""
1212
git_version: main
1313
gunicorn_port: 10501
14+
nav_tickets_enabled: true
1415
project_root: "/srv/pydata"
1516
postmark_api_token: ""
1617
ssl_enabled: false

ansible/roles/web/templates/pretalx/common/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h1>
9696
</div>
9797
<a class="nav-link" href="{{ content_site }}/job-board/">Job Board</a>
9898
<a class="nav-link" href="{{ content_site }}/sponsors/">Sponsor</a>
99-
<a class="nav-link" href="{{ content_site }}/tickets/">Tickets</a>
99+
{% if nav_tickets_enabled %}<a class="nav-link" href="{{ content_site }}/tickets/">Tickets</a>{% endif %}
100100
<a class="nav-link" href="{{ content_site }}/schedule/">Schedule</a>
101101
</nav>
102102
{% raw %}

0 commit comments

Comments
 (0)