{% extends "base.html" %} {% load labels tz %} {% block title %}My day{% endblock %} {% block content %} {% if not profile or not profile.company_id %}
My day lists your own {% label "crm.task" plural=True case="lower" %} and {% label "crm.engagement" plural=True case="lower" %}. Your account has no staff profile in a company, so there is nothing to show.
{% else %} {% timezone viewer_tz %}

My day · {{ today|date:"l, F j" }} ({{ viewer_tz }})

All my {% label "crm.task" plural=True case="lower" %}
{% if all_clear %}

All clear: nothing is due and every one of your open {% label "crm.engagement" plural=True case="lower" %} has a next action.

{% else %} {% if not overdue and not due_today %}

Nothing due. {{ idle|length }} {% if idle|length == 1 %}{% label "crm.engagement" case="lower" %} needs{% else %}{% label "crm.engagement" plural=True case="lower" %} need{% endif %} a next action: see below.

{% endif %} {% with next=request.get_full_path %}

Overdue {{ overdue|length }}

Today {{ due_today|length }}

{% endwith %}

Needs a next action {{ idle|length }}

{% endif %} {% endtimezone %} {% endif %} {% endblock %}