If viewing just a single note in read-only mode, make the notebook name in the
header at the top of the page into a link back to that notebook.
This commit is contained in:
parent
fc2ab3800b
commit
f79ecbd188
|
@ -126,7 +126,9 @@ class Main_page( Page ):
|
|||
Rounded_div(
|
||||
( notebook.name == u"trash" ) and u"trash_notebook" or u"current_notebook",
|
||||
( notebook.name == u"trash" or not notebook.read_write ) \
|
||||
and Strong( notebook.name ) \
|
||||
and (
|
||||
len( notes ) == 1 and A( Strong( notebook.name ), href = notebook_path ) or Strong( notebook.name )
|
||||
) \
|
||||
or Span( Strong( notebook.name ), id = u"notebook_header_name" ),
|
||||
parent_id and Span(
|
||||
u" | ",
|
||||
|
|
Reference in New Issue