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

11 lines
408 B
Plaintext

<%= 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") %>
<%= " |&nbsp;" if params[:q] %>
<%= link_to "New album", new_album_path() %>
<% end %>
<% end %>