fix #1287. Fix various small bugs and some small improvements

This commit is contained in:
Reinier Balt 2012-06-29 16:48:30 +02:00
parent 88729f57ce
commit bd8498f39c
10 changed files with 18 additions and 40 deletions

View file

@ -200,7 +200,7 @@ module ApplicationHelper
return content_tag(:li, t('sidebar.list_empty')).html_safe
else
return list.inject("") do |html, item|
link = (item.class == "Project") ? link_to_project( item ) : link_to_context(item)
link = item.is_a?(Project) ? link_to_project( item ) : link_to_context(item)
html << content_tag(:li, link + " (" + count_undone_todos_phrase(item)+")")
end.html_safe
end