cirandas.net

ref: master

plugins/video/views/shared/video_list.html.erb


<% first_video = contents[0] first_video_arr = Array.new first_video_arr.push(first_video) other_videos = contents - first_video_arr %> <% if first_video.display_to?(user) %> <% end %> <% other_videos.each do |content| %> <% if content.display_to?(user) %> <% end %> <% end %>

<%= pagination_links contents, :param_name => 'npage', :page_links => true %>