Remove hardcoded time formats in list views (#93)

This commit is contained in:
Christopher C. Wells 2020-01-19 13:29:49 -08:00
parent 094908f8bc
commit 1a31a27974
5 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@
<td class="text-center">{{ change.wet|bool_icon }}</td>
<td class="text-center">{{ change.solid|bool_icon }}</td>
<td>{{ change.get_color_display }}</td>
<td>{{ change.time|date:'n/j/y G:i' }}</td>
<td>{{ change.time }}</td>
<td class="text-center">
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans "Actions" %}">

View File

@ -36,7 +36,7 @@
{% endif %}
</td>
<td>{{ feeding.duration|duration_string }}</td>
<td>{{ feeding.start|date:'n/j/y G:i' }}</td>
<td>{{ feeding.start }}</td>
<td class="text-center">
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans "Actions" %}">

View File

@ -27,8 +27,8 @@
<tr>
<th scope="row"><a href="{% url 'core:child' sleep.child.slug %}">{{ sleep.child }}</a></th>
<td>{{ sleep.duration|duration_string }}</td>
<td>{{ sleep.start|date:'n/j/y G:i' }}</td>
<td>{{ sleep.end|date:'n/j/y G:i' }}</td>
<td>{{ sleep.start }}</td>
<td>{{ sleep.end }}</td>
<td class="text-center">{{ sleep.nap|bool_icon }}</td>
<td class="text-center">
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans "Actions" %}">

View File

@ -26,9 +26,9 @@
{% for timer in object_list %}
<tr>
<th scope="row"><a href="{% url 'core:timer-detail' timer.id %}">{{ timer }}</a></th>
<td>{{ timer.start|date:'n/j/y G:i' }}</td>
<td>{{ timer.start }}</td>
<td>{{ timer.duration|duration_string }}</td>
<td>{{ timer.end|date:'n/j/y G:i' }}</td>
<td>{{ timer.end }}</td>
<td>{{ timer.active|bool_icon }}</td>
<td>{{ timer.user }}</td>
</tr>

View File

@ -27,8 +27,8 @@
<tr>
<th scope="row"><a href="{% url 'core:child' tummytime.child.slug %}">{{ tummytime.child }}</a></th>
<td>{{ tummytime.duration|duration_string }}</td>
<td>{{ tummytime.start|date:'n/j/y G:i' }}</td>
<td>{{ tummytime.end|date:'n/j/y G:i' }}</td>
<td>{{ tummytime.start }}</td>
<td>{{ tummytime.end }}</td>
<td>{{ tummytime.milestone }}</td>
<td class="text-center">
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans "Actions" %}">