From 7728ea00d467ef86efc0b090b656404fc7a96998 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Fri, 21 Sep 2007 05:58:36 +0000 Subject: [PATCH] Applied patch from Jeremy Harper to add the tag name to the span tag surrounding it in the action output. This allows for fun with CSS colors if you're so inclined. Closes #562. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@595 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/helpers/todos_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tracks/app/helpers/todos_helper.rb b/tracks/app/helpers/todos_helper.rb index e3562bb6..03011397 100644 --- a/tracks/app/helpers/todos_helper.rb +++ b/tracks/app/helpers/todos_helper.rb @@ -72,7 +72,8 @@ module TodosHelper end def tag_list - tag_list = @todo.tags.reject{|t| t.name == Todo::STARRED_TAG_NAME}.collect{|t| "" + link_to(t.name, :action => "tag", :id => t.name) + ""}.join('') + tags_except_starred = @todo.tags.reject{|t| t.name == Todo::STARRED_TAG_NAME} + tag_list = tags_except_starred.collect{|t| "" + link_to(t.name, :action => "tag", :id => t.name) + ""}.join('') "#{tag_list}" end