witten
/
luminotes
Archived
1
0
Fork 0

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:
Dan Helfman 2007-11-16 00:46:37 +00:00
parent fc2ab3800b
commit f79ecbd188
1 changed files with 3 additions and 1 deletions

View File

@ -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" | ",