Add links from dashboard

Fixes #234
This commit is contained in:
Ohad Lutzky 2021-08-04 21:36:00 +01:00 committed by Christopher Charbonneau Wells
parent 4b59475c00
commit 36c44484b4
12 changed files with 61 additions and 16 deletions

View File

@ -28,7 +28,7 @@
.card-diaperchange { .card-diaperchange {
@extend .border-danger; @extend .border-danger;
.card-header { .card-header, .card-header a {
@extend .text-white, .bg-danger; @extend .text-white, .bg-danger;
} }
@ -44,7 +44,7 @@
.card-feeding { .card-feeding {
@extend .border-primary; @extend .border-primary;
.card-header { .card-header, .card-header a {
@extend .text-white, .bg-primary; @extend .text-white, .bg-primary;
} }
@ -61,7 +61,7 @@
.card-sleep { .card-sleep {
@extend .border-secondary; @extend .border-secondary;
.card-header { .card-header, .card-header a {
@extend .text-white, .bg-secondary; @extend .text-white, .bg-secondary;
} }
} }
@ -85,7 +85,7 @@
.card-timer { .card-timer {
@extend .border-light; @extend .border-light;
.card-header { .card-header, .card-header a {
@extend .text-dark, .bg-light; @extend .text-dark, .bg-light;
} }
@ -97,7 +97,7 @@
.card-tummytime { .card-tummytime {
@extend .border-success; @extend .border-success;
.card-header { .card-header, .card-header a {
@extend .text-white, .bg-success; @extend .text-white, .bg-success;
} }

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load i18n %} {% load i18n %}
{% block header %}{% trans "Last Diaper Change" %}{% endblock %} {% block header %}
<a href="{% url "core:diaperchange-list" %}">
{% trans "Last Diaper Change" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if change %} {% if change %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load i18n %} {% load i18n %}
{% block header %}{% trans "Diaper Changes" %}{% endblock %} {% block header %}
<a href="{% url "core:diaperchange-list" %}">
{% trans "Diaper Changes" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if total == 0 %} {% if total == 0 %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Today's Feeding" %}{% endblock %} {% block header %}
<a href="{% url "core:feeding-list" %}">
{% trans "Today's Feeding" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if total %} {% if total %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load i18n %} {% load i18n %}
{% block header %}{% trans "Last Feeding" %}{% endblock %} {% block header %}
<a href="{% url "core:feeding-list" %}">
{% trans "Last Feeding" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if feeding %} {% if feeding %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load i18n %} {% load i18n %}
{% block header %}{% trans "Last Feeding Method" %}{% endblock %} {% block header %}
<a href="{% url "core:feeding-list" %}">
{% trans "Last Feeding Method" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if feedings|length > 0 %} {% if feedings|length > 0 %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Today's Sleep" %}{% endblock %} {% block header %}
<a href="{% url "core:sleep-list" %}">
{% trans "Today's Sleep" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if total %} {% if total %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Last Sleep" %}{% endblock %} {% block header %}
<a href="{% url "core:sleep-list" %}">
{% trans "Last Sleep" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if sleep %} {% if sleep %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Today's Naps" %}{% endblock %} {% block header %}
<a href="{% url "core:sleep-list" %}">
{% trans "Today's Naps" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if count %} {% if count %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load i18n %} {% load i18n %}
{% block header %}{% trans "Active Timers" %}{% endblock %} {% block header %}
<a href="{% url "core:timer-list" %}">
{% trans "Active Timers" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% with instances|length as count %} {% with instances|length as count %}

View File

@ -1,7 +1,11 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Today's Tummy Time" %}{% endblock %} {% block header %}
<a href="{% url "core:tummytime-list" %}">
{% trans "Today's Tummy Time" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if stats.count > 0 %} {% if stats.count > 0 %}

View File

@ -1,7 +1,12 @@
{% extends 'cards/base.html' %} {% extends 'cards/base.html' %}
{% load duration i18n %} {% load duration i18n %}
{% block header %}{% trans "Last Tummy Time" %}{% endblock %} {% block header %}
<a href="{% url "core:tummytime-list" %}">
{% trans "Last Tummy Time" %}
</a>
{% endblock %}
{% block title %} {% block title %}
{% if tummytime %} {% if tummytime %}