Sha256: d67c6d64d858da1c4f29ed99fe484a2516167be078c02fc36f7817f1d51b8f42

Contents?: true

Size: 606 Bytes

Versions: 5

Compression:

Stored size: 606 Bytes

Contents

<%= content_tag :div, 
  :rel => photo.id,
  :id => "spud_admin_photo_#{photo.id}", 
  :style => "background-image:url('#{photo.photo.url(:spud_admin_small)}')",
  :class => "spud_admin_photo_ui_thumb spud_admin_photo_ui_thumb_small spud_admin_photo" do %>
  <div style="display:none;">
    <%= hidden_field_tag 'spud_photo_album[photo_ids][]', photo.id %>
  </div>
  <div class="spud_admin_photo_ui_thumb_controls">
    <%= link_to 'Edit', edit_admin_photo_path(photo), :class => 'spud_admin_photos_btn_edit' %>
    <%= link_to 'Delete', '#', :class => 'spud_admin_photos_btn_remove' %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_photos-1.0.6 app/views/admin/photos/_photo.html.erb
tb_photos-1.0.5 app/views/admin/photos/_photo.html.erb
tb_photos-1.0.4 app/views/admin/photos/_photo.html.erb
tb_photos-1.0.3 app/views/admin/photos/_photo.html.erb
tb_photos-1.0.1 app/views/admin/photos/_photo.html.erb