From 08475a504caeb07760d584b465c9e29a4028512d Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Thu, 12 Jan 2012 12:35:29 -0600 Subject: [PATCH] issue 602, thanks Iceberg --- VERSION | 2 +- applications/admin/views/generic.html | 18 ++++++++---------- applications/examples/views/generic.html | 15 ++++++++++++++- applications/welcome/views/generic.html | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/VERSION b/VERSION index 69e7c83e..5958fd45 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-01-12 12:27:44) stable +Version 1.99.4 (2012-01-12 12:35:23) stable diff --git a/applications/admin/views/generic.html b/applications/admin/views/generic.html index 287dafd3..f6ee4962 100644 --- a/applications/admin/views/generic.html +++ b/applications/admin/views/generic.html @@ -5,14 +5,12 @@ You should not modify this file. It is used as default when a view is not provided for your controllers """}} - +

{{=' '.join(x.capitalize() for x in request.function.split('_'))}}

+{{if len(response._vars)==1:}} +{{=BEAUTIFY(response._vars.values()[0])}} +{{elif len(response._vars)>1:}} {{=BEAUTIFY(response._vars)}} - - - - - - - - - +{{pass}} +{{if request.is_local:}} +{{=response.toolbar()}} +{{pass}} diff --git a/applications/examples/views/generic.html b/applications/examples/views/generic.html index 887af215..f6ee4962 100644 --- a/applications/examples/views/generic.html +++ b/applications/examples/views/generic.html @@ -1,3 +1,16 @@ {{extend 'layout.html'}} +{{""" + +You should not modify this file. +It is used as default when a view is not provided for your controllers + +"""}} +

{{=' '.join(x.capitalize() for x in request.function.split('_'))}}

+{{if len(response._vars)==1:}} +{{=BEAUTIFY(response._vars.values()[0])}} +{{elif len(response._vars)>1:}} {{=BEAUTIFY(response._vars)}} -{{block sidebar}}{{end}} +{{pass}} +{{if request.is_local:}} +{{=response.toolbar()}} +{{pass}} diff --git a/applications/welcome/views/generic.html b/applications/welcome/views/generic.html index edfe3106..f6ee4962 100644 --- a/applications/welcome/views/generic.html +++ b/applications/welcome/views/generic.html @@ -7,7 +7,7 @@ It is used as default when a view is not provided for your controllers """}}

{{=' '.join(x.capitalize() for x in request.function.split('_'))}}

{{if len(response._vars)==1:}} -{{=response._vars.values()[0]}} +{{=BEAUTIFY(response._vars.values()[0])}} {{elif len(response._vars)>1:}} {{=BEAUTIFY(response._vars)}} {{pass}}