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

6 lines
389 B
Plaintext
Raw Normal View History

<ul><%= render :partial => 'photos/thumb',:collection => @photos, :as => :photo %></ul>
<% content_for :action_links do %>
<%= link_to "Show albums containing photos tagged with #{params[:q]}", albums_path(:q => params[:q]) if params[:q] %>
<%= link_to "Show all photos tagged with #{params[:tag_id]}", tag_photos_path(params[:tag_id]) if params[:tag_id] && params[:album_id] %>
<% end %>