comparison templates/base.html @ 172:fa5346d25dfc

Allow title overriding from the template (typically when url.py is 3rd-party)
author Sylvain Beucler <beuc@beuc.net>
date Thu, 22 Jul 2010 21:27:11 +0200
parents 3ddd86437b55
children 492005721817
comparison
equal deleted inserted replaced
171:95cf3d737dbf 172:fa5346d25dfc
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head> 4 <head>
5 {% load i18n %} 5 {% load i18n %}
6 <title> 6 <title>
7 {% block title %}{% if title %}{{ title }}{% else %}{% trans 'Welcome' %}{% endif %} 7 {% include "title.html" %}
8 [Savannah]{% endblock %} 8 [Savannah]
9 </title> 9 </title>
10 <link rel="stylesheet" type="text/css" href="{{STATIC_MEDIA_URL}}savane/css/Savannah.css" /> 10 <link rel="stylesheet" type="text/css" href="{{STATIC_MEDIA_URL}}savane/css/Savannah.css" />
11 <link rel="icon" type="image/png" href="{{STATIC_MEDIA_URL}}savane/images/icon.png" /> 11 <link rel="icon" type="image/png" href="{{STATIC_MEDIA_URL}}savane/images/icon.png" />
12 </head> 12 </head>
13 <body> 13 <body>
37 <div class="content"> 37 <div class="content">
38 {% if messages %} 38 {% if messages %}
39 <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul> 39 <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul>
40 {% endif %} 40 {% endif %}
41 41
42 <h1>{{ title }}</h1> 42 <h1>{% include "title.html" %}</h1>
43 43
44 {% block content %} 44 {% block content %}
45 {% endblock %} 45 {% endblock %}
46 </div> 46 </div>
47 </div>
48 </div>
49
50 </div><!-- end main --> 47 </div><!-- end main -->
51 <br class="clear" /> 48 <br class="clear" />
52 </div><!-- end realbody --> 49 </div><!-- end realbody -->
53 50
54 <p class="footer"> 51 <p class="footer">