witten
/
luminotes
Archived
1
0
Fork 0

Linking name of note when a single note is shown.

This commit is contained in:
Dan Helfman 2007-11-07 21:47:23 +00:00
parent 89f97dd7a4
commit 26f0892a20
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ class Main_page( Page ):
),
Rounded_div(
( notebook.name == u"trash" ) and u"trash_notebook" or u"current_notebook",
Strong( notebook.name ),
( len( notes ) > 0 and notebook.name != u"Luminotes" ) and \
A( Strong( notebook.name ), href = u"/notebooks/%s" % notebook.object_id ) \
or Strong( notebook.name ),
parent_id and Span(
u" | ",
A( u"empty trash", href = u"/notebooks/%s" % notebook.object_id, id = u"empty_trash_link" ),