]> gitweb.fperrin.net Git - djsite.git/commitdiff
Add proper titles
authorFrédéric Perrin <fred@fperrin.net>
Wed, 28 Sep 2016 21:04:57 +0000 (22:04 +0100)
committerFrédéric Perrin <fred@fperrin.net>
Wed, 28 Sep 2016 21:04:57 +0000 (22:04 +0100)
quotes/templates/quotes/author.html
quotes/templates/quotes/base.html
quotes/templates/quotes/onequote.html
quotes/templates/quotes/tag.html

index 1fa09c8731519c99ac39f18a9322940354f7de85..c3377ceeb3d7fdcb7d3b150e83c2cefbd7ef197e 100644 (file)
@@ -1,5 +1,7 @@
 {% extends 'quotes/base.html' %}
 
 {% extends 'quotes/base.html' %}
 
+{% block title %}Quotes for {{ author.name }}{% endblock %}
+
 {% block body %}
 
 
 {% block body %}
 
 
index fe72a4385b252e9de0698f123c6c0ac204ac71ca..df22ab28c7ab22f5f74ffed1a4eab1f0f8406613 100644 (file)
@@ -2,6 +2,7 @@
   <head>
     {% load staticfiles %}
     <link rel="stylesheet" type="text/css" href="{% static 'quotes/style.css' %}" />
   <head>
     {% load staticfiles %}
     <link rel="stylesheet" type="text/css" href="{% static 'quotes/style.css' %}" />
+    <title>{% block title %}{% endblock %}</title>
   </head>
   <body>
     {% block body %}
   </head>
   <body>
     {% block body %}
index 4d01894bb3ed75c4d20fe84d7fb835e11a9eb669..359cc7bb0ebb40b3d9f57b65d84df4a25ee77df8 100644 (file)
@@ -1,5 +1,7 @@
 {% extends 'quotes/base.html' %}
 
 {% extends 'quotes/base.html' %}
 
+{% block title %}A quote by {{quote.author.name}}...{% endblock %}
+
 {% block body %}
 
 {% include "quotes/display.html" with quote=quote %}
 {% block body %}
 
 {% include "quotes/display.html" with quote=quote %}
index 266cd168e45c35f75b69a1fca0523c93121b7d7d..3f3eb06a9b16cfbd2111d15c265569133f0f35e9 100644 (file)
@@ -1,11 +1,10 @@
 {% extends 'quotes/base.html' %}
 
 {% extends 'quotes/base.html' %}
 
-{% block body %}
-
+{% block title %}Quotes about "{{ tag.tag }}"{% endblock %}
 
 
-<h1>{{ tag.tag }}</h1>
+{% block body %}
 
 
-<p>All the quotes tagged with {{ tag.tag }}:<p>
+<p>All the quotes tagged with "{{ tag.tag }}":<p>
 
 {% for quote in tag.quote_set.all %}
   {% include "quotes/display.html" with quote=quote %}
 
 {% for quote in tag.quote_set.all %}
   {% include "quotes/display.html" with quote=quote %}