Sha256: 5e6e88d3bb7566fb1fe79c3d0b0e400a6fceb7cdcb4bf61afe6629d75f333ba8
Contents?: true
Size: 763 Bytes
Versions: 4
Compression:
Stored size: 763 Bytes
Contents
require "sass" include_set Abstract::Machine store_machine_output filetype: "css" format do # turn off autodetection of uri's def chunk_list :nest_only end end format :html do view :editor, template: :haml def themes card.rule_card(:options).item_cards end end event :customize_theme, :prepare_to_validate, on: :update, when: :customize_theme? do skin_name = free_skin_name add_subcard skin_name, type_id: CustomizedBootswatchSkinID self.content = "[[#{skin_name}]]" end def free_skin_name name = "#{@theme} skin customized" if Card.exist?(name) name = "#{name} 1" name.next! while Card.exist?(name) end name end def customize_theme? Env.params[:customize].present? && (@theme = Env.params[:theme]).present? end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
card-1.95.3 | mod/settings/set/right/style.rb |
card-1.95.2 | mod/settings/set/right/style.rb |
card-1.95.1 | mod/settings/set/right/style.rb |
card-1.95.0 | mod/settings/set/right/style.rb |