{% load static %} {% load custom_tags_and_filters %} {{ site_title }} {% block navbar_main %} Calendar {% if tools_exist %}Tool control{% endif %} {% if tools_exist or areas_exist %} {% if areas_exist %} Status dashboard {% else %} Status dashboard {% endif %} {% endif %} {% if buddy_system_areas_exist or access_user_request_allowed_exist and facility_managers_exist or adjustment_request_allowed and facility_managers_exist %} Requests {% if buddy_notification_count or temporary_access_notification_count or adjustment_notification_count %} {{ buddy_notification_count|add:temporary_access_notification_count|add:adjustment_notification_count }} {% endif %} {% endif %} {% if safety_menu_item %} Safety {% if safety_notification_count %} {{ safety_notification_count }} {% endif %} {% endif %} {% endblock %} {% if user.is_any_part_of_staff or user.is_tool_superuser or user.is_project_pi or user.get_all_permissions and "django.contrib.admin"|app_installed %} Administration {% block navbar_admin %} {# The navigation_url tag will display the item if the URL name can be reversed. #} {# This allows items to be easily removed from the public facing version. #} {% navigation_url 'admin:index' 'Detailed administration' user.is_superuser user.get_all_permissions %} {% if user.is_any_part_of_staff %} {% navigation_url 'abuse' 'Abuse' user.is_facility_manager user.is_superuser %} {% navigation_url 'accounts_and_projects' 'Accounts and projects' user.is_accounting_officer user.is_user_office user.is_facility_manager user.is_superuser %} {% navigation_url 'alerts' 'Alerts' user.is_staff user.is_user_office user.is_superuser %} {% navigation_url 'api-root' 'API' user.is_superuser %} {% if areas_exist %}{% navigation_url 'area_access' 'Area access' user.is_staff user.is_user_office user.is_superuser %}{% endif %} {% if tools_exist %}{% navigation_url 'configuration_agenda' 'Configuration agenda' user.is_staff user.is_superuser %}{% endif %} {% if user.is_facility_manager or user.is_superuser or user.is_staff and "contracts"|customization:"contracts_view_staff" == "enabled" or user.is_user_office and "contracts"|customization:"contracts_view_user_office" == "enabled" or user.is_accounting_officer and "contracts"|customization:"contracts_view_accounting_officer" == "enabled" %} {% navigation_url 'service_contracts' 'Contracts & procurements' %} {% endif %} {% navigation_url 'customization' 'Customization' user.is_superuser %} {% navigation_url 'email_broadcast' 'Email' %} {% navigation_url 'impersonate' 'Impersonate' user.is_superuser %} {% if tools_exist %}{% navigation_url 'maintenance' 'Maintenance' user.is_staff user.is_superuser %}{% endif %} {% navigation_url 'project_billing' 'Project billing' user.is_accounting_officer user.is_user_office user.is_superuser %} {% if tools_exist %}{% navigation_url 'qualifications' 'Qualifications' user.is_staff user.is_superuser %}{% endif %} {% navigation_url 'recurring_charges' recurring_charges_name user.is_user_office user.is_facility_manager user.is_superuser %} {% navigation_url 'staff_charges' 'Remote work' user.is_staff user.is_superuser %} {% navigation_url 'resources' 'Resources' user.is_staff user.is_superuser %} {% navigation_url 'sensors' 'Sensor data' %} {% navigation_url 'consumables' 'Supplies' user.is_staff user.is_user_office user.is_superuser %} {% if tools_exist %}{% navigation_url 'training' 'Training' user.is_staff user.is_superuser %}{% endif %} {% navigation_url 'users' 'Users' %} {% elif user.is_tool_superuser or user.is_project_pi %} {% navigation_url 'projects' 'Projects' user.is_project_pi %} {% if tools_exist %}{% navigation_url 'training' 'Training' user.is_tool_superuser %}{% endif %} {% endif %} {% endblock %} {% endif %} Preferences {% if logout_allowed %} Logout {% endif %} {% if user.is_staff and user.charging_staff_time %} Charging staff time {% endif %} Welcome, {{ user.first_name }} {% if logout_allowed %} Logout {% endif %}
Charging staff time
Welcome, {{ user.first_name }}