# HG changeset patch # User Todd Larsen # Date 1224294422 0 # Node ID 9363b9dc2983e7506c3c3a22c20e0442a0644ef1 # Parent dcd7013ae0d517746a61db5808b45161a9128fe4 Add the Page object to the context of each view. Update templates to make use of the newly-available page.long_name and page.short_name. Patch by: Todd Larsen Review by: to-be-reviewed diff -r dcd7013ae0d5 -r 9363b9dc2983 app/soc/templates/soc/base.html --- a/app/soc/templates/soc/base.html Sat Oct 18 01:35:08 2008 +0000 +++ b/app/soc/templates/soc/base.html Sat Oct 18 01:47:02 2008 +0000 @@ -18,9 +18,16 @@ {% block stylesheet %} {% endblock %} - {% block page_title %}Google Open Source Programs{% endblock %} + + {% block page_title %} + {% if page %} +{{ page.long_name }} + {% else %} +<Missing Page Object> + {% endif %} + {% endblock %} + {% block scripts %}{% endblock %} - @@ -53,7 +60,16 @@
- {% block header_title %}Google Open Source Programs{% endblock %} + {% block header_title %} + {% if page %} +{% comment %} +TODO(tlarsen): replace this with breadcrumbs +{% endcomment %} + {{ page.short_name }} + {% else %} +<Missing Page Object> + {% endif %} + {% endblock %}