lib/maglove/widgets/scrollable_image.rb in maglove-widgets-1.1.9 vs lib/maglove/widgets/scrollable_image.rb in maglove-widgets-2.0.0
- old
+ new
@@ -13,15 +13,14 @@
margin_bottom: "0px"
}
end
module Helpers
- def scrollable_image_widget(options = {}, &block)
+ def scrollable_image_widget(options = {})
widget_block(Widgets::ScrollableImage.new(options)) do |widget|
haml_tag :div, class: "scrollable-image-container #{widget.options[:show_navigation] ? 'show-navigation' : ''}", style: style_string(widget.options, :margin, :padding, :height) do
haml_tag :div, class: "scrollable-image-inner" do
haml_tag :img, class: "scrollable-image", src: widget.options[:source]
- yield if block
end
if widget.options[:show_navigation]
haml_tag :div, class: "scrollable-image-navigator scrollable-image-navigator-left"
haml_tag :div, class: "scrollable-image-navigator scrollable-image-navigator-right"
end