photomix/app/views/albums/index.html.erb

11 lines
408 B
Plaintext
Raw Normal View History

2012-07-29 00:33:03 +02:00
<%= paginate @albums %>
<%= render 'row_collections' %>
<%= paginate @albums %>
2011-04-25 07:54:40 +02:00
<%= content_for :action_links do %>
2012-07-29 00:33:03 +02:00
<%= 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") %>
<%= " |&nbsp;" if params[:q] %>
<%= link_to "New album", new_album_path() %>
<% end %>
<% end %>