From: Frédéric Perrin Date: Wed, 28 Sep 2016 21:04:57 +0000 (+0100) Subject: Add proper titles X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=commitdiff_plain;h=80b8a3d5a952846e12ef15d441c8ae7c529666cc Add proper titles --- 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 %}