{% 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 %}
{% 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 %}
Project | Hours Assigned | Hours Worked | Progress | {% for project in project_progress %}
---|---|---|---|
{{ project.name }} | {{ project.assigned|convert_hours_to_seconds|humanize_seconds:"%H:%M" }} | {{ project.worked|convert_hours_to_seconds|humanize_seconds:"%H:%M" }} |
No entries or assignments exist for this week.
{% endif %}No entries exist for this week.
{% endif %}Name | Project | Since | {% for entry in others_active_entries %}
---|---|---|
{{ 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 %} |
Currently there are no other users with an active entry.
{% endif %}