cirandas.net

ref: master

plugins/video/lib/video_plugin/video_gallery_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
module VideoPlugin::VideoGalleryHelper

  def list_videos(configure={})
      configure[:recursive] ||= false
      configure[:list_type] ||= :folder
      if !configure[:contents].blank?
        configure[:contents] = configure[:contents].paginate(
          :per_page => 17,
          :page => params[:npage]
        ).order("updated_at DESC")
        render :file => 'shared/video_list', :locals => configure
      else
        content_tag('em', _('(empty folder)'))
      end
  end

end