<%= paginate @albums %> <%= render 'row_collections' %> <%= paginate @albums %> <%= content_for :action_links do %> <%= link_to "Show just the photos tagged with #{params[:q]}", photos_path(:q => params[:q]) if params[:q] %> <% if current_user and current_user.has_role?("admin") %> <%= " | " if params[:q] %> <%= link_to "New album", new_album_path() %> <% end %> <% end %>