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

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

{% if active_entry %} You have been clocked into {{ active_entry.activity.name }} for {{ active_entry.project }} since {{ active_entry.start_time|time }} {% 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:'M j' }} {% else %} on {{ active_entry.start_time|date:"l" }} {% endif %} {% endifnotequal %} ({{ active_entry.get_total_seconds|humanize_seconds }} time clocked{% if active_entry.seconds_paused or active_entry.is_paused %} and {{ active_entry.get_paused_seconds|humanize_seconds }} paused{% endif %}). {% else %} You are not currently clocked into a project. {% endif %}
Total: {{ total_worked|humanize_hours:"{hours:02d}:{minutes:02d}" }} worked of {{ total_assigned|humanize_hours:"{hours:02d}:{minutes:02d}" }} expected
{% if project_progress %} {% for data in project_progress %} {% endfor %}
Project Hours Assigned Hours Worked Progress
{{ data.project }} {{ data.assigned|humanize_hours:"{hours:02d}:{minutes:02d}" }} {{ data.worked|humanize_hours:"{hours:02d}:{minutes:02d}" }}
{% else %}

No entries or assignments exist for this week.

{% endif %}
{% if week_entries %} {% url 'dashboard' active_tab='all-entries' as next_url %} {% regroup week_entries by start_time|date:'l, F j' as daily_entries %} {% for day in daily_entries %} {% sum_hours day.list as daily_total %} {% for entry in day.list %} {% endfor %} {% endfor %}
Project Activity From To Pause Time Total Time Comment
{{ day.grouper }} {{ daily_total|humanize_seconds:"{hours:02d}:{minutes:02d}" }}
{% if entry.status == "unverified" %} {% else %} {% endif %} {{ entry.project }} {{ entry.activity.name }} {{ entry.start_time|time }} {% if entry.end_time %} {{ entry.end_time|time }} {% else %} current {% endif %} {% with entry.get_paused_seconds as pause_time %} {% if pause_time %} {{ pause_time|humanize_seconds }} {% endif %} {% endwith %} {{ entry.get_total_seconds|humanize_seconds:"{hours:02d}:{minutes:02d}" }} {% if entry.comments|length > 50 %} {{entry.comments|slice:':50'}}… {% else %} {{ entry.comments }} {% endif %}
{% 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 }} for {{ entry.project }} {{ entry.start_time|time }} {% 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:'M 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 %}