analytics.js

This commit is contained in:
mdipierro
2012-12-12 21:30:57 -06:00
parent 8fa903f17a
commit 2cb2484cd0
4 changed files with 21 additions and 5 deletions
+5 -2
View File
@@ -5,6 +5,8 @@
## Customize your APP title, subtitle and menus here
#########################################################################
response.logo = A(B('web',SPAN(2),'py'),XML('™ '),
_class="brand",_href="http://www.web2py.com/")
response.title = ' '.join(
word.capitalize() for word in request.application.split('_'))
response.subtitle = T('customize me!')
@@ -26,11 +28,12 @@ response.menu = [
(T('Home'), False, URL('default', 'index'), [])
]
DEVELOPMENT_MENU = True
#########################################################################
## provide shortcuts for development. remove in production
#########################################################################
def _():
# shortcuts
app = request.application
@@ -133,4 +136,4 @@ def _():
])
]
)]
_()
if DEVELOPMENT_MENU: _()