mybuddy/dashboard/templates/cards/timer_list.html

32 lines
980 B
HTML
Raw Normal View History

2017-10-29 03:01:39 +00:00
{% extends 'cards/base.html' %}
{% load i18n %}
2017-09-25 16:13:37 +00:00
2021-08-04 20:36:00 +00:00
{% block header %}
<a href="{% url "core:timer-list" %}">
{% trans "Active Timers" %}
</a>
{% endblock %}
2017-09-25 16:13:37 +00:00
{% block title %}
{% with instances|length as count %}
{% blocktrans trimmed with plural=count|pluralize %}
{{ count }} active timer{{ plural }}
{% 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 %}"
2017-12-03 21:52:27 +00:00
class="list-group-item list-group-item-action">
<strong>{{ timer.title_with_child }}</strong>
<p class="text-muted small m-0">
{% blocktrans trimmed with start=timer.start|time user=timer.user_username %}
Started by {{ user }} at {{ start }}
{% endblocktrans %}
</p>
2017-09-25 16:13:37 +00:00
</a>
{% endfor %}
</ul>
{% endblock %}