photomix/app/views/photos/index.html.erb
2011-04-25 13:50:07 +08:00

6 lines
390 B
Plaintext

<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 %>