@pmds = []
@vmds = []
@xes = []
+ @thumbs = []
else
@arc_search = Arc::Search.new(params[:search])
@arcs = Arc.paginate(@arc_search.find_options.merge(:page => nil, :order => 'location_id, code', :per_page => 15, :include => :location))
@vmds = Vmd.paginate(@vmd_search.find_options.merge(:page => nil, :per_page => 15, :include => { :arc => :location }))
@x_search = X::Search.new(params[:search])
@xes = X.paginate(@x_search.find_options.merge(:page => nil, :per_page => 15, :include => { :arc => :location }))
+ @thumb_search = Thumb::Search.new(params[:search])
+ @thumbs = Thumb.paginate(@thumb_search.find_options.merge(:page => nil, :per_page => 15))
end
end
<%= link_to _('and more')+' »', xes_path(:search => params[:search]) %>
</div>
<%-end-%>
+
+<%-unless @thumbs.empty?-%>
+<p>
+ <b><%= _'thumb' %>:</b>
+</p>
+<table class="list thumbs">
+ <thead>
+ <tr>
+ <th><%= _'Thumb|Video' %></th>
+ <th><%= _'Thumb|Title' %></th>
+ <th><%= _'Thumb|Description' %></th>
+ </tr>
+ </thead>
+
+ <tbody>
+<% for thumb in @thumbs %>
+ <tr class="<%= cycle('odd', 'even') %>">
+ <td><%=link_to h(thumb.video_id), thumb %></td>
+ <td><%=h thumb.title %></td>
+ <td><%=h truncate(thumb.description) %></td>
+ </tr>
+<% end %>
+ </tbody>
+</table>
+<div class="pagination">
+ <%= link_to _('and more')+' »', thumbs_path(:search => params[:search]) %>
+</div>
+<%-end-%>