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

6 lines
158 B
Ruby

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