do a big refactor of rendering collections of todos for home page, tag page, project page, context page

This commit is contained in:
Reinier Balt 2013-03-10 20:38:10 +01:00
parent f22dfc1f9b
commit 22b371ef8c
20 changed files with 910 additions and 816 deletions

View file

@ -17,6 +17,17 @@ module ApplicationHelper
end
end
def show_empty_containers_menu_entry
@show_empty_containers ||= false
@group_view_by ||= 'context'
content_tag(:li) do
link_to(
t("layouts.navigation.show_empty_containers_#{@group_view_by}"),
'#',
{:id => "show_empty_containers", :accesskey => "s", :title => t('layouts.navigation.show_empty_containers_title'), :x_show_empty_containers => @show_empty_containers} )
end
end
def container_toggle(id)
link_to(
image_tag("blank.png", :alt => t('common.collapse_expand')),