mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
do a big refactor of rendering collections of todos for home page, tag page, project page, context page
This commit is contained in:
parent
f22dfc1f9b
commit
22b371ef8c
20 changed files with 910 additions and 816 deletions
|
|
@ -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')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue