From 80b8a3d5a952846e12ef15d441c8ae7c529666cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Perrin?= Date: Wed, 28 Sep 2016 22:04:57 +0100 Subject: [PATCH] Add proper titles --- quotes/templates/quotes/author.html | 2 ++ quotes/templates/quotes/base.html | 1 + quotes/templates/quotes/onequote.html | 2 ++ quotes/templates/quotes/tag.html | 7 +++---- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/quotes/templates/quotes/author.html b/quotes/templates/quotes/author.html index 1fa09c8..c3377ce 100644 --- a/quotes/templates/quotes/author.html +++ b/quotes/templates/quotes/author.html @@ -1,5 +1,7 @@ {% extends 'quotes/base.html' %} +{% block title %}Quotes for {{ author.name }}{% endblock %} + {% block body %} diff --git a/quotes/templates/quotes/base.html b/quotes/templates/quotes/base.html index fe72a43..df22ab2 100644 --- a/quotes/templates/quotes/base.html +++ b/quotes/templates/quotes/base.html @@ -2,6 +2,7 @@ {% load staticfiles %} + {% block title %}{% endblock %} {% block body %} diff --git a/quotes/templates/quotes/onequote.html b/quotes/templates/quotes/onequote.html index 4d01894..359cc7b 100644 --- a/quotes/templates/quotes/onequote.html +++ b/quotes/templates/quotes/onequote.html @@ -1,5 +1,7 @@ {% extends 'quotes/base.html' %} +{% block title %}A quote by {{quote.author.name}}...{% endblock %} + {% block body %} {% include "quotes/display.html" with quote=quote %} diff --git a/quotes/templates/quotes/tag.html b/quotes/templates/quotes/tag.html index 266cd16..3f3eb06 100644 --- a/quotes/templates/quotes/tag.html +++ b/quotes/templates/quotes/tag.html @@ -1,11 +1,10 @@ {% extends 'quotes/base.html' %} -{% block body %} - +{% block title %}Quotes about "{{ tag.tag }}"{% endblock %} -

{{ tag.tag }}

+{% block body %} -

All the quotes tagged with {{ tag.tag }}:

+

All the quotes tagged with "{{ tag.tag }}":

{% for quote in tag.quote_set.all %} {% include "quotes/display.html" with quote=quote %} -- 2.43.0