Sha256: 2c3ffcc19eb703511d7e4dd3493594d3cd52a289c7e64d145b8169d3d453f373

Contents?: true

Size: 526 Bytes

Versions: 10

Compression:

Stored size: 526 Bytes

Contents

format :html do
  view :box do
    class_up "box-middle", "p-0"
    voo.hide :customize_button, :box_middle
    super()
  end

  view :box_bottom, template: :haml

  view :customize_button do
    ""
  end

  view :box_middle do
    field_nest :image, view: :full_width, size: :large if card.fetch :image
  end

  def select_button target=parent.card
    link_to_card target, "Apply",
                 path: { action: :update, card: { content: "[[#{card.name}]]" } },
                 class: "btn btn-sm btn-primary"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
card-mod-style-0.17.0 set/abstract/skin_box.rb
card-mod-style-0.16.0 set/abstract/skin_box.rb
card-mod-style-0.15.6 set/abstract/skin_box.rb
card-mod-style-0.15.5 set/abstract/skin_box.rb
card-mod-style-0.15.4 set/abstract/skin_box.rb
card-mod-style-0.15.3 set/abstract/skin_box.rb
card-mod-style-0.15.2.pre1 set/abstract/skin_box.rb
card-mod-style-0.15.1.1 set/abstract/skin_box.rb
card-mod-style-0.15.1 set/abstract/skin_box.rb
card-mod-style-0.15.0 set/abstract/skin_box.rb