colorscheme for code view

This commit is contained in:
Dmitriy Zaporozhets 2011-11-26 01:42:42 +02:00
parent 139a332293
commit 3aee553523
4 changed files with 80 additions and 3 deletions

View file

@ -15,4 +15,12 @@ module ProjectsHelper
rescue
nil
end
def switch_colorscheme_link(opts)
if cookies[:colorschema].blank?
link_to_function "paint it black!", "$.cookie('colorschema','black'); window.location.reload()", opts
else
link_to_function "paint it white!", "$.cookie('colorschema',''); window.location.reload()", opts
end
end
end