lib/maglove/widgets/scrollable_image.rb in maglove-widgets-1.1.7 vs lib/maglove/widgets/scrollable_image.rb in maglove-widgets-1.1.8

- old
+ new

@@ -13,14 +13,15 @@ margin_bottom: "0px" } end module Helpers - def scrollable_image_widget(options = {}) + def scrollable_image_widget(options = {}, &block) 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