get features of recurring_todos to pass

This commit is contained in:
Reinier Balt 2012-05-12 15:37:13 +02:00
parent 901a5ff0d2
commit ecb0ff5bf7
6 changed files with 136 additions and 136 deletions

View file

@ -2,11 +2,10 @@ module RecurringTodosHelper
def recurring_todo_tag_list
tags_except_starred = @recurring_todo.tags.reject{|t| t.name == Todo::STARRED_TAG_NAME}
tag_list = tags_except_starred.collect{|t| "<span class=\"tag #{t.name.gsub(' ','-')}\">" +
link_to(t.name, :controller => "todos", :action => "tag", :id =>
t.name) + #TODO: tag view for recurring_todos (yet?)
"</span>"}.join('')
"<span class='tags'>#{tag_list}</span>"
tag_list = tags_except_starred.
collect{|t| content_tag(:span,link_to(t.name, tag_path(t.name)), :class => "tag #{t.name.gsub(' ','-')}")}.
join('')
return content_tag :span, tag_list.html_safe, :class => "tags"
end
def recurring_todo_remote_delete_icon