From c84778d41ed0bf1a92381077b7fad663b1dc417b Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 14 Feb 2018 12:45:00 +0100
Subject: [PATCH] list of appointments contain info about type of list

---
 smash/web/templates/appointments/list.html | 4 ++--
 smash/web/views/appointment.py             | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/smash/web/templates/appointments/list.html b/smash/web/templates/appointments/list.html
index 24de957c..0df0378b 100644
--- a/smash/web/templates/appointments/list.html
+++ b/smash/web/templates/appointments/list.html
@@ -9,10 +9,10 @@
 {% endblock styles %}
 
 {% block ui_active_tab %}'appointments'{% endblock ui_active_tab %}
-{% block page_header %}Appointments{% endblock page_header %}
+{% block page_header %}{{  list_description }}{% endblock page_header %}
 {% block page_description %}{% endblock page_description %}
 
-{% block title %}{{ block.super }} - Appointments{% endblock %}
+{% block title %}{{ block.super }} - {{  list_description }}{% endblock %}
 
 {% block breadcrumb %}
     {% include "appointments/breadcrumb.html" %}
diff --git a/smash/web/views/appointment.py b/smash/web/views/appointment.py
index d45f67f8..c4a9ddf1 100644
--- a/smash/web/views/appointment.py
+++ b/smash/web/views/appointment.py
@@ -27,6 +27,7 @@ def appointments(request):
 def unfinished_appointments(request):
     context = {
         'list_type': APPOINTMENT_LIST_UNFINISHED,
+        'list_description': 'List of unfinished appointments'
     }
 
     return wrap_response(request, "appointments/list.html", context)
-- 
GitLab