mybuddy/dashboard/templates/cards/timer_list.html

30 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load i18n %}
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:timer-list" %}">{% trans "Timers" %}</a>
2021-08-04 20:36:00 +00:00
{% endblock %}
2017-09-25 16:13:37 +00:00
{% block title %}
{% with instances|length as count %}
2022-06-05 13:34:52 +00:00
{% blocktrans trimmed count counter=count %}
{{ count }} timer
2022-06-05 13:34:52 +00:00
{% plural %}
{{ count }} timers
{% endblocktrans %}
2017-09-25 16:13:37 +00:00
{% endwith %}
{% endblock %}
{% block listgroup %}
<ul class="list-group list-group-flush">
{% for timer in instances %}
<a href="{% url 'core:timer-detail' timer.id %}"
class="list-group-item list-group-item-action">
<strong>{{ timer.title_with_child }}</strong>
<p class="text-body-secondary small m-0">
{% blocktrans trimmed with start=timer.start|time user=timer.user_username %}
Started by {{ user }} at {{ start }}
{% endblocktrans %}
</p>
</a>
{% endfor %}
2017-09-25 16:13:37 +00:00
</ul>
{% endblock %}