diff --git a/dashboard/templates/dashboard/child_button_group.html b/dashboard/templates/dashboard/child_button_group.html index 0de77583..eaf99695 100644 --- a/dashboard/templates/dashboard/child_button_group.html +++ b/dashboard/templates/dashboard/child_button_group.html @@ -1,6 +1,6 @@ {% load i18n %} -
+
{% if perms.core.view_child %} diff --git a/dashboard/templates/dashboard/dashboard.html b/dashboard/templates/dashboard/dashboard.html index 8622fe72..a6a0b9dd 100644 --- a/dashboard/templates/dashboard/dashboard.html +++ b/dashboard/templates/dashboard/dashboard.html @@ -1,5 +1,5 @@ {% extends 'babybuddy/page.html' %} -{% load i18n static thumbnail %} +{% load cards i18n static thumbnail %} {% block title %}{% trans "Dashboard" %}{% endblock %} @@ -8,30 +8,37 @@ {% endblock %} {% block content %} -
- {% for object in objects %} -
-
- - {% if object.picture %} - {% thumbnail object.picture 300x300 upscale crop as thumb %} - - {% else %} - - {% endif %} - -
-

{{ object }}

-
-

- {% trans "Born" %} {{ object.birth_date }}
- {% trans "Age" %} {{ object.birth_date|timesince }} -

- {% include 'dashboard/child_button_group.html' %} +
+
+ {% card_timer_list %} +
+
+
+ {% for object in objects %} +
+
+ + {% if object.picture %} + {% thumbnail object.picture 300x300 upscale crop as thumb %} + + {% else %} + + {% endif %} + +
+

{{ object }}

+
+

+ {% trans "Born" %} {{ object.birth_date }}
+ {% trans "Age" %} {{ object.birth_date|timesince }} +

+ {% include 'dashboard/child_button_group.html' %} +
+
+ {% endfor %}
- {% endfor %}
{% endblock %}