{% extends 'pendulum/pendulum_base.html' %}
{% load pendulum_tags %}
{% block title %}Pendulum Entries{% endblock %}
{% block content %}
«
{{ period.0|date:"N j, Y" }} -
{{ period.1|date:"N j, Y" }}
{% if has_next %}
»
{% else %}
»
{% endif %}
|
Date |
Start Time |
End Time |
Hours |
Project |
Activity |
{% for entry in entries %}
{% with entry.start_time|date:"W" as week_of_year %}
{% ifchanged week_of_year %}{% week_totals entry.start_time.date %}{% endifchanged %}
{% endwith %}
{% ifchanged entry.start_time.date %}{% day_totals entry.start_time.date %}{% endifchanged %}
{% if entry.is_closed %}{% endif %}{{ entry.start_time|date:"j N Y" }}{% if entry.is_closed %}{% endif %}
|
{{ entry.start_time|date:"P" }} |
{% if entry.end_time %}
{{ entry.end_time|date:"P" }}{% else %}
Clock Out
{% endif %} |
{% if entry.end_time %}
{{ entry.total_time }}
({{ entry.hours }}){% else %}
{% if entry.is_paused %}
Unpause
{% else %}
Pause
{% endif %}
{% endif %} |
{{ entry.project }} |
{% if entry.activity.code %}
{{ entry.activity.code }}
{% else %}
...
{% endif %}
|
{% if entry.is_closed %}δ{% endif %}
×
|
{% if entry.seconds_paused %}
|
Breaks: |
{{ entry.paused_time }} |
|
{% endif %}
{% if entry.comments %}
{% endif %}
{% endfor %}
{% if entries %}
Statistics |
Projects |
Activities |
{% entries_projects entries as projects %}
{% for project in projects %}
{% if forloop.first %}{% endif %}
{{ project.name }} |
{% time_in_period project period %}
({% filter floatformat:2 %}{% hours_in_period project period %}{% endfilter %})
|
{% if forloop.last %} {% endif %}
{% endfor %}
|
{% entries_activities entries as activities %}
{% for activity in activities %}
{% if forloop.first %}{% endif %}
{{ activity.name }} |
{% time_in_period activity period %}
({% filter floatformat:2 %}{% hours_in_period activity period %}{% endfilter %})
|
{% if forloop.last %} {% endif %}
{% endfor %}
|
Total Hours |
{% total_time_for_period period user %}
({% filter floatformat:2 %}{% total_hours_for_period period user %}{% endfilter %})
|
Total Entries |
{{ entries.count }} |
{% endif %}
{% endblock %}