From 26f0892a2097f6cfe0cd585a72a2c0bfffa87ed6 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 7 Nov 2007 21:47:23 +0000 Subject: [PATCH] Linking name of note when a single note is shown. --- view/Main_page.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view/Main_page.py b/view/Main_page.py index 2f4655d..a95f815 100644 --- a/view/Main_page.py +++ b/view/Main_page.py @@ -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" ),