diff --git a/dashboard/static_src/scss/cards.scss b/dashboard/static_src/scss/cards.scss index 5eee9109..4c7de366 100644 --- a/dashboard/static_src/scss/cards.scss +++ b/dashboard/static_src/scss/cards.scss @@ -28,7 +28,7 @@ .card-diaperchange { @extend .border-danger; - .card-header { + .card-header, .card-header a { @extend .text-white, .bg-danger; } @@ -44,7 +44,7 @@ .card-feeding { @extend .border-primary; - .card-header { + .card-header, .card-header a { @extend .text-white, .bg-primary; } @@ -61,7 +61,7 @@ .card-sleep { @extend .border-secondary; - .card-header { + .card-header, .card-header a { @extend .text-white, .bg-secondary; } } @@ -85,7 +85,7 @@ .card-timer { @extend .border-light; - .card-header { + .card-header, .card-header a { @extend .text-dark, .bg-light; } @@ -97,7 +97,7 @@ .card-tummytime { @extend .border-success; - .card-header { + .card-header, .card-header a { @extend .text-white, .bg-success; } diff --git a/dashboard/templates/cards/diaperchange_last.html b/dashboard/templates/cards/diaperchange_last.html index 0508ca6a..afbc4a41 100644 --- a/dashboard/templates/cards/diaperchange_last.html +++ b/dashboard/templates/cards/diaperchange_last.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load i18n %} -{% block header %}{% trans "Last Diaper Change" %}{% endblock %} +{% block header %} + + {% trans "Last Diaper Change" %} + +{% endblock %} {% block title %} {% if change %} diff --git a/dashboard/templates/cards/diaperchange_types.html b/dashboard/templates/cards/diaperchange_types.html index 4d83348a..36965777 100644 --- a/dashboard/templates/cards/diaperchange_types.html +++ b/dashboard/templates/cards/diaperchange_types.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load i18n %} -{% block header %}{% trans "Diaper Changes" %}{% endblock %} +{% block header %} + + {% trans "Diaper Changes" %} + +{% endblock %} {% block title %} {% if total == 0 %} diff --git a/dashboard/templates/cards/feeding_day.html b/dashboard/templates/cards/feeding_day.html index e67b2693..a0e0be1c 100644 --- a/dashboard/templates/cards/feeding_day.html +++ b/dashboard/templates/cards/feeding_day.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Today's Feeding" %}{% endblock %} +{% block header %} + + {% trans "Today's Feeding" %} + +{% endblock %} {% block title %} {% if total %} diff --git a/dashboard/templates/cards/feeding_last.html b/dashboard/templates/cards/feeding_last.html index 00faea80..596b9471 100644 --- a/dashboard/templates/cards/feeding_last.html +++ b/dashboard/templates/cards/feeding_last.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load i18n %} -{% block header %}{% trans "Last Feeding" %}{% endblock %} +{% block header %} + + {% trans "Last Feeding" %} + +{% endblock %} {% block title %} {% if feeding %} diff --git a/dashboard/templates/cards/feeding_last_method.html b/dashboard/templates/cards/feeding_last_method.html index 53cda45b..23b1f321 100644 --- a/dashboard/templates/cards/feeding_last_method.html +++ b/dashboard/templates/cards/feeding_last_method.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load i18n %} -{% block header %}{% trans "Last Feeding Method" %}{% endblock %} +{% block header %} + + {% trans "Last Feeding Method" %} + +{% endblock %} {% block title %} {% if feedings|length > 0 %} diff --git a/dashboard/templates/cards/sleep_day.html b/dashboard/templates/cards/sleep_day.html index b80df909..6f1a8d61 100644 --- a/dashboard/templates/cards/sleep_day.html +++ b/dashboard/templates/cards/sleep_day.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Today's Sleep" %}{% endblock %} +{% block header %} + + {% trans "Today's Sleep" %} + +{% endblock %} {% block title %} {% if total %} diff --git a/dashboard/templates/cards/sleep_last.html b/dashboard/templates/cards/sleep_last.html index 8a04df01..2a7a9017 100644 --- a/dashboard/templates/cards/sleep_last.html +++ b/dashboard/templates/cards/sleep_last.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Last Sleep" %}{% endblock %} +{% block header %} + + {% trans "Last Sleep" %} + +{% endblock %} {% block title %} {% if sleep %} diff --git a/dashboard/templates/cards/sleep_naps_day.html b/dashboard/templates/cards/sleep_naps_day.html index b4b9077d..2847c78a 100644 --- a/dashboard/templates/cards/sleep_naps_day.html +++ b/dashboard/templates/cards/sleep_naps_day.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Today's Naps" %}{% endblock %} +{% block header %} + + {% trans "Today's Naps" %} + +{% endblock %} {% block title %} {% if count %} diff --git a/dashboard/templates/cards/timer_list.html b/dashboard/templates/cards/timer_list.html index 9ba24be9..0e2ed937 100644 --- a/dashboard/templates/cards/timer_list.html +++ b/dashboard/templates/cards/timer_list.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load i18n %} -{% block header %}{% trans "Active Timers" %}{% endblock %} +{% block header %} + + {% trans "Active Timers" %} + +{% endblock %} {% block title %} {% with instances|length as count %} diff --git a/dashboard/templates/cards/tummytime_day.html b/dashboard/templates/cards/tummytime_day.html index e5b29fa7..8a46e36f 100644 --- a/dashboard/templates/cards/tummytime_day.html +++ b/dashboard/templates/cards/tummytime_day.html @@ -1,7 +1,11 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Today's Tummy Time" %}{% endblock %} +{% block header %} + + {% trans "Today's Tummy Time" %} + +{% endblock %} {% block title %} {% if stats.count > 0 %} diff --git a/dashboard/templates/cards/tummytime_last.html b/dashboard/templates/cards/tummytime_last.html index 9cdb1cd4..a28b3017 100644 --- a/dashboard/templates/cards/tummytime_last.html +++ b/dashboard/templates/cards/tummytime_last.html @@ -1,7 +1,12 @@ {% extends 'cards/base.html' %} {% load duration i18n %} -{% block header %}{% trans "Last Tummy Time" %}{% endblock %} +{% block header %} + + {% trans "Last Tummy Time" %} + +{% endblock %} + {% block title %} {% if tummytime %}