{% if current_user.is_authenticated %} {% set ep = request.endpoint or '' %} {% set timer_tab_active = ep.startswith('timer.') and ep != 'timer.time_entries_overview' %} {% set reports_in_more = ep.startswith('reports.') and not ep.startswith('scheduled_reports.') and not ep.startswith('custom_reports.') %} {% set more_tab_active = ep.startswith('invoices.') or ep.startswith('clients.') or reports_in_more or ep.startswith('user.settings') %} {# Backdrop + drawer sit above the tab bar so taps dismiss correctly #}
{% endif %}