<% set_default_index do 
  objects @albums
  filter_field  type: 'objects',
                values: @tags,
                translation: 'tags',
                object_field: 'name'

  filter_field  type: 'objects',
                values: @categories,
                translation: 'category',
                object_field: 'title'
                
  footer  link: 'new_panel_gallery_back_end_album_path',
          paginate: false
end %>
<%= render 'admin/default_index/index' %>
     
<ul id="orbit_gallery" class="gallery" data-gallery-id="gallery">
  <% @albums.each do |album| %>
    <%= render :partial => "album", :object => album %>
  <% end %>
</ul>

<% content_for :page_specific_css do %>
  <%= stylesheet_link_tag "gallery" %>
<% end %>

<% content_for :page_specific_javascript do %>
  <%= javascript_include_tag "jquery.masonry.min.js" %>
  <%= javascript_include_tag "jquery.lite.image.resize.js" %>
  <%= javascript_include_tag "gallery" %>
<% end %>





