gitlabhq/app/helpers/projects_helper.rb
2011-10-13 04:00:00 +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