{% from 'macros/navigation.html' import navigation with context %} {% from 'macros/show_notifications.html' import show_notifications %} Workers Control {% block style %} {% endblock %} {% set user_type = session.get('user_type') %} {% if user_type in ['company', 'member', 'accountant'] and current_user_name is not none %} {% set home_label = gettext("Dashboard") %} {% set account_url = url_for('main_user.account_details') %} {% if user_type == 'company' %} {% set home_url = url_for('main_company.dashboard') %} {% elif user_type == 'member' %} {% set home_url = url_for('main_member.dashboard') %} {% else %} {% set home_url = url_for('main_accountant.dashboard') %} {% endif %} {% else %} {% set home_url = url_for('auth.start') %} {% set home_label = 'Workers Control' %} {% set account_url = none %} {% endif %} {% call navigation( home_url=home_url, home_label=home_label, account_url=account_url) %} {% block navbar_start %} {% endblock navbar_start %} {% endcall %} {{ show_notifications() }}
{% block content %} {% endblock content %}