From b78b0f4eca9311a36af1acec1d86f184149aa12d Mon Sep 17 00:00:00 2001 From: bsag Date: Sat, 10 Jun 2006 12:41:15 +0000 Subject: [PATCH] Fixed up viewing of notes on the 'Done' page. They can now be toggled just like on the main page. Fixes #284. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@260 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/todo/_done.rhtml | 9 +++------ tracks/app/views/todo/completed_archive.rhtml | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tracks/app/views/todo/_done.rhtml b/tracks/app/views/todo/_done.rhtml index ee8c6c6e..c8a25c25 100644 --- a/tracks/app/views/todo/_done.rhtml +++ b/tracks/app/views/todo/_done.rhtml @@ -14,12 +14,9 @@ <%= " - was due on " + format_date( done.due ) %> <% end %> - <% if done.notes? %> - <%= "" + - image_tag( "notes", :width=>"10", :height=>"10", :border=>"0") + "" %> - <% m_notes = sanitize(markdown( done.notes )) %> - <%= "
" + m_notes + "
" %> - <% end %> + <% if done.notes? -%> + <%= toggle_show_notes( done ) %> + <% end -%> <% end %> diff --git a/tracks/app/views/todo/completed_archive.rhtml b/tracks/app/views/todo/completed_archive.rhtml index ba4f7f87..32d17ee6 100644 --- a/tracks/app/views/todo/completed_archive.rhtml +++ b/tracks/app/views/todo/completed_archive.rhtml @@ -8,4 +8,4 @@ - +