refactor: add public_mode for static pages to remove nav elements

This commit is contained in:
2025-11-04 19:34:04 +13:00
parent 7b38fc2e37
commit 7eb4029ac9
4 changed files with 23 additions and 3 deletions

View File

@ -118,6 +118,7 @@
{% include "includes/footer.html" %}
{# Floating Help Tab #}
{% if not public_mode %}
<div class="fixed right-0 top-1/2 -translate-y-1/2 z-50">
<a href="https://community.envipath.org/" target="_blank"
class="flex items-center justify-center btn btn-secondary hover:btn-secondary-focus text-secondary-content text-sm shadow-lg transition-all duration-300 hover:scale-105 hover:-translate-x-1"
@ -127,6 +128,7 @@
</svg>
</a>
</div>
{% endif %}
{# Modals - TODO: Convert these to DaisyUI modals #}
{% block modals %}