gitlabhq/app/helpers/projects_helper.rb
2011-10-14 19:30:31 +03:00

7 lines
158 B
Ruby

module ProjectsHelper
def view_mode_style(type)
cookies["project_view"] ||= "tile"
cookies["project_view"] == type ? nil : "display:none"
end
end