slice view mentions slicename in title
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 2 Sep 2013 07:43:54 +0000 (09:43 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 2 Sep 2013 07:43:54 +0000 (09:43 +0200)
trash/sliceview.py

index 9f1663e..55578e3 100644 (file)
@@ -280,7 +280,7 @@ def _slice_view (request, slicename):
     template_env [ 'unfold1_main' ] = main_plugin.render(request)
 
     # more general variables expected in the template
-    template_env [ 'title' ] = 'Test view that combines various plugins'
+    template_env [ 'title' ] = '%(slicename)s (test view that combines various plugins)'%locals()
     # the menu items on the top
     template_env [ 'topmenu_items' ] = topmenu_items('Slice', request) 
     # so we can sho who is logged