mirror of https://github.com/snachodog/mybuddy.git
46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
|
{% load duration %}
|
||
|
|
||
|
<div class="card card-dashboard card-averages">
|
||
|
<div class="card-header">
|
||
|
<i class="icon icon-graph pull-left" aria-hidden="true"></i>
|
||
|
Averages
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<div class="container">
|
||
|
<div class="row no-gutters text-center">
|
||
|
<div class="col-6 col-xl-3">
|
||
|
<div class="text-muted">Time asleep</div>
|
||
|
{% if sleep.average %}
|
||
|
{{ sleep.average|duration_string:'m' }}
|
||
|
{% else %}
|
||
|
<em>Not enough data</em>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
<div class="col-6 col-xl-3">
|
||
|
<div class="text-muted">Time awake</div>
|
||
|
{% if sleep.btwn_average %}
|
||
|
{{ sleep.btwn_average|duration_string:'m' }}
|
||
|
{% else %}
|
||
|
<em>Not enough data</em>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
<div class="col-6 col-xl-3">
|
||
|
<div class="text-muted">Change freq.</div>
|
||
|
{% if changes.btwn_average %}
|
||
|
{{ changes.btwn_average|duration_string:'m' }}
|
||
|
{% else %}
|
||
|
<em>Not enough data</em>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
<div class="col-6 col-xl-3">
|
||
|
<div class="text-muted">Feeding freq.</div>
|
||
|
{% if feedings.btwn_average %}
|
||
|
{{ feedings.btwn_average|duration_string:'m' }}
|
||
|
{% else %}
|
||
|
<em>Not enough data</em>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|