{% extends "timepiece/time-sheet/base.html" %} {% load url from future %} {% load timepiece_tags %} {% block title %}Dashboard{% endblock title %} {% block bodyid %}dashboard{% endblock bodyid %} {% block breadcrumb %}{% endblock breadcrumb %} {% block content %} {% if perms.timepiece.can_clock_in %}

{{ week_start|date:'F j' }} to {{ week_end|date:'F j' }}

{% if active_entry %} You have been clocked into {{ active_entry.project.name }} since {{ active_entry.start_time|date:"g:i A" }} {% ifnotequal active_entry.start_time.date today %} {% if active_entry.start_time.date < week_start or active_entry.start_time.date > week_end %} on {{ active_entry.start_time|date:"F j" }} {% else %} on {{ active_entry.start_time|date:"l" }} {% endif %} {% endifnotequal %} ({{ active_entry.get_active_seconds|humanize_seconds }} time clocked{% if active_entry.seconds_paused or active_entry.is_paused %} and {{ active_entry.seconds_paused|humanize_seconds }} paused{% endif %}). {% else %} You are not currently clocked into a project. {% endif %}

Overall
{% if project_progress %} {% for project in project_progress %} {% endfor %}
Project Hours Assigned Hours Worked Progress
{{ project.name }} {{ project.assigned|convert_hours_to_seconds|humanize_seconds:"%H:%M" }} {{ project.worked|convert_hours_to_seconds|humanize_seconds:"%H:%M" }}
{% else %}

No entries or assignments exist for this week.

{% endif %}
Add Entry {% if week_entries %} {% for entry in week_entries %} {% endfor %}
Date Entry From To Pause Time Total Time
{% ifchanged entry.start_time|date %} {{ entry.start_time|date:"D" }} {% endifchanged %} {% if entry.status == "unverified" %} {% else %} {% endif %} {{ entry.activity.name }} on {{ entry.project.name }} {{ entry.start_time|date:"g:i A" }} {{ entry.end_time|date:"g:i A" }} {{ entry.seconds_paused|humanize_seconds }} {{ entry.get_seconds|humanize_seconds|slice:":-3" }}
{% else %}

No entries exist for this week.

{% endif %}
{% if others_active_entries %} {% for entry in others_active_entries %} {% endfor %}
Name Project Since
{{ entry.user__first_name }} {{ entry.user__last_name }} {{ entry.activity__name }} on {{ entry.project__name }} {{ entry.start_time|date:"g:i A" }} {% ifnotequal entry.start_time.date today %} {% if entry.start_time.date < week_start or entry.start_time.date > week_end %} on {{ entry.start_time|date:"N j" }} {% else %} on {{ entry.start_time|date:"l" }} {% endif %} {% endifnotequal %}
{% else %}

Currently there are no other users with an active entry.

{% endif %}
{% endif %} {% endblock content %}