Another variation of the dashboard page title.

This commit is contained in:
Brian E. Granger 2014-02-05 09:58:52 -08:00
parent 378b18b2fb
commit 157f5f64a5

View File

@ -44,12 +44,11 @@ class TreeHandler(IPythonHandler):
if len(comps) > 3:
for i in range(len(comps)-2):
comps.pop(0)
comps.insert(0, '...')
page_title = url_escape(url_path_join(*comps))
if page_title:
return '/'+page_title+'/'
return page_title+'/'
else:
return '/'
return 'Home'
@web.authenticated
def get(self, path='', name=None):