From 33727efcd78423a1e063544382906d3262f67a75 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 15 Apr 2008 21:05:28 +0000 Subject: [PATCH] Not showing "recent notes" or note tree instructions while in trash. --- NEWS | 6 ++++++ view/Note_tree_area.py | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 65f0146..2bc8ae6 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +1.3.0: April 1?, 2008 + * Created a new hierarchical note tree area for browsing notes. + * Added a list of recent notes. + * Made links to external sites displayed with a little icon, at least in + Firefox. + 1.2.24: April 4, 2008 * Several cosmetic and layout changes to the wiki editing page. * Added rss icon to blog subscribe link. diff --git a/view/Note_tree_area.py b/view/Note_tree_area.py index 09d7b9e..69432d1 100644 --- a/view/Note_tree_area.py +++ b/view/Note_tree_area.py @@ -26,15 +26,17 @@ class Note_tree_area( Div ): root_note_id = note.object_id, ) for note in root_notes ], Div( - u'Add a note here: Click the "options" tab on a note, then "show on startup".', + ( notebook.name != u"trash" ) and u'Add a note here: Click the "options" tab on a note, then "show on startup".' or None, id = "note_tree_instructions", class_ = u"small_text link_area_item" + ( ( len( root_notes ) > 0 ) and u" undisplayed" or u"" ), ) or None, tree_id = "note_tree_root_table", ), - H4( u"recent notes", - id = u"recent_notes_area_title", - ), + ( notebook.name != u"trash" ) and Span( + H4( u"recent notes", + id = u"recent_notes_area_title", + ), + ) or None, self.make_tree( [ self.make_item( title = note.title,