From 7134482ec454f1ff40429f462d3c01fd968a26a1 Mon Sep 17 00:00:00 2001 From: lrbalt Date: Thu, 12 Jun 2008 07:31:25 +0000 Subject: [PATCH] Applied patch from Eric Pallen whcih automatically converts url's to links. Thanks Eric! git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@876 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/notes/_notes.rhtml | 50 +++++++++++----------- tracks/app/views/todos/_toggle_notes.rhtml | 11 +++-- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/tracks/app/views/notes/_notes.rhtml b/tracks/app/views/notes/_notes.rhtml index c99812fc..9d71eec5 100644 --- a/tracks/app/views/notes/_notes.rhtml +++ b/tracks/app/views/notes/_notes.rhtml @@ -1,39 +1,39 @@ <% note = notes -%>
-

<%= link_to("Note #{note.id}", note_path(note), :title => "Show note #{note.id}" ) %>

+

<%= link_to("Note #{note.id}", note_path(note), :title => "Show note #{note.id}" ) %>

- <%= sanitize(textilize(note.body)) %> - - + +
- - -
<% note = nil -%> diff --git a/tracks/app/views/todos/_toggle_notes.rhtml b/tracks/app/views/todos/_toggle_notes.rhtml index 524871a7..1993e7ae 100644 --- a/tracks/app/views/todos/_toggle_notes.rhtml +++ b/tracks/app/views/todos/_toggle_notes.rhtml @@ -1,8 +1,7 @@ <%= link_to(image_tag( 'blank.png', :width=>'16', :height=>'16', :border=>'0' ), "#", {:class => 'show_notes', :title => 'Show notes'}) %> <% apply_behavior 'a.show_notes:click', :prevent_default => true do |page, element| - element.next('.todo_notes').toggle - end --%> - \ No newline at end of file + element.next('.todo_notes').toggle +end -%> + \ No newline at end of file