gitlabhq/app/helpers/projects_helper.rb

7 lines
158 B
Ruby
Raw Normal View History

2011-10-08 23:36:38 +02:00
module ProjectsHelper
2011-10-11 22:00:00 +02:00
def view_mode_style(type)
cookies["project_view"] ||= "tile"
cookies["project_view"] == type ? nil : "display:none"
end
2011-10-08 23:36:38 +02:00
end