mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +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:
|
if len(comps) > 3:
|
||||||
for i in range(len(comps)-2):
|
for i in range(len(comps)-2):
|
||||||
comps.pop(0)
|
comps.pop(0)
|
||||||
comps.insert(0, '...')
|
|
||||||
page_title = url_escape(url_path_join(*comps))
|
page_title = url_escape(url_path_join(*comps))
|
||||||
if page_title:
|
if page_title:
|
||||||
return '/'+page_title+'/'
|
return page_title+'/'
|
||||||
else:
|
else:
|
||||||
return '/'
|
return 'Home'
|
||||||
|
|
||||||
@web.authenticated
|
@web.authenticated
|
||||||
def get(self, path='', name=None):
|
def get(self, path='', name=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user