witten
/
luminotes
Archived
1
0
Fork 0

Cannot click and rename notebook name in header on read-only notebooks!

This commit is contained in:
Dan Helfman 2007-11-16 00:26:27 +00:00
parent c1b4a58f65
commit 4d1cac745e
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ class Main_page( Page ):
),
Rounded_div(
( notebook.name == u"trash" ) and u"trash_notebook" or u"current_notebook",
( notebook.name == u"trash" ) and Strong( u"trash" ) or Span( Strong( notebook.name ), id = u"notebook_header_name" ),
( notebook.name == u"trash" or not notebook.read_write ) \
and Strong( notebook.name ) \
or Span( Strong( notebook.name ), id = u"notebook_header_name" ),
parent_id and Span(
u" | ",
A( u"empty trash", href = u"/notebooks/%s" % notebook.object_id, id = u"empty_trash_link" ),