Sha256: 2e367b211a9ab4aacd096e2768d5f135e7c153394f7d455c671daed2122d079c
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module C80Swiper module AppHelper def swipe(swslider_id=nil, effect='slide') swslider = swslider_id.nil? ? C80Swiper::Swslider.first : C80Swiper::Swslider.find(swslider_id) render :partial => 'c80_swiper/swipe', :locals => { frames: swslider.sframes, options: { mark_pagination: true, mark_buttons: true, mark_scrollbar: false, mark_lazy: false, params: { effect: effect, autoplay: swslider.autoplay * 1000 # Delay between transitions (in ms). If this parameter is not specified, auto play will be disabled } } } rescue => e Rails.logger.debug "[TRACE] <app_helper.swipe> #{e}" render :partial => 'c80_swiper/shared/swipe_error_message', :locals => { error_message: "#{e}" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_swiper-0.1.0.1 | app/helpers/c80_swiper/app_helper.rb |