mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Another variation of the dashboard page title.
This commit is contained in:
parent
378b18b2fb
commit
157f5f64a5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user