gitlabhq/app/helpers/projects_helper.rb

7 lines
158 B
Ruby
Raw Normal View History

2011-10-13 03:00:00 +02:00
module ProjectsHelper
def view_mode_style(type)
cookies["project_view"] ||= "tile"
cookies["project_view"] == type ? nil : "display:none"
end
end