Sha256: bbd0d47907e8a3daf25e3c7a620380a9a2343758156b0ef3036a64231e9c6b98
Contents?: true
Size: 1.17 KB
Versions: 16
Compression:
Stored size: 1.17 KB
Contents
<% title "Albums" %> <% heading "Albums" %> <%= stylesheet 'dust_album', 'uploadify' %> <div class="button_bar"> <%= render :partial => 'albums/search' %> <%=link_to 'new page', new_album_path, :class => 'newfile tip', :title => "New Album" %> </div> <div class='photolist'> <%= will_paginate @albums %> <table class="photos"> <tr style='color:#222;'> <th></th> <th> Album Title </th> <th> Created At </th> <th></th> </tr> <% @albums.each do |album| %> <tr class='<%= cycle('odd', 'even')%>'> <td> <% if album.photos.empty? %> <%= link_to "add photos to #{album.title}", album %> <% else %> <% @photo = album.photos.find(:first) %> <%= link_to image_tag(@photo.file.url(:thumb)), album %> <% end -%> </td> <td> <%= album.title%> </td> <td> <%= album.created_at.to_s(:m_d_y) %> </td> <td> <div style='float:right'> <%=link_to '', edit_album_path(album), :class => 'edit' %> <%=link_to "", album, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy' %> </div> </td> </tr> <% end %> </table> </div> <div class="clear"></div> <%= will_paginate @albums %>
Version data entries
16 entries across 16 versions & 2 rubygems