{% if project_description %}
{% endif %} {% load static %}
{% block head %}{% endblock %}
Fox
Fitt
{% if user.is_authenticated %} {# Dashboard #} {% if user.is_staff or user.is_superuser or perms.core.view_project or user.managed_teams.exists or user.assigned_projects.exists %}
Dashboard
{% endif %} {# Log Work #} {% if user.is_staff or user.is_superuser or perms.core.add_worklog %}
Log Work
{% else %} {# Fallback for existing users if strict mode is not desired, but user requested hiding. #} {# I will leave it visible ONLY if they are supervisors to maintain status quo for them if they lack permissions #} {% if user.managed_teams.exists or user.assigned_projects.exists %}
Log Work
{% endif %} {% endif %} {# History #} {% if user.is_staff or user.is_superuser or perms.core.view_worklog or user.managed_teams.exists or user.assigned_projects.exists %}
History
{% endif %} {# Payroll #} {% if user.is_staff or user.is_superuser or perms.core.view_payrollrecord %}
Payroll
{% endif %} {# Loans #} {% if user.is_staff or user.is_superuser or perms.core.view_loan %}
Loans
{% endif %} {# Receipts #} {% if user.is_staff or user.is_superuser or perms.core.add_expensereceipt %}
Receipts
{% endif %} {# Manage #} {% if user.is_staff or user.is_superuser or perms.core.change_worker %}
Manage
{% endif %}
{{ user.username }}
{% if user.is_staff or user.is_superuser %}
Admin Panel
{% endif %}
{% csrf_token %}
Logout
{% else %}
Login
{% endif %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% block content %}{% endblock %}