Sha256: 5dc97739cfbaaa6e7aa59818f77c9e26d59f8a3644900d0ba98f07bfc3b2338b

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

Contents

<% for work in @works do %>
  <div class="grid_19 menu">
    <div class="grid_2 alpha">
      <p>
        <%= link_to work.name, edit_artist_work_path(work.artist, work)%>
      </p>
    </div>
    <% unless work.images.empty? %>
      <div class="grid_16">
        <ul>
          <% Work.attachment_magick_default_options[:styles].keys.sort{|x, y| x.to_s <=> y.to_s}.reject{|x| x == :fullscreen}.each do |style| %>
            <li class="grid_2 rpush_2 <%= style == :grid_3 ? "active" : ""%>">
              <%= link_to "#{style}", "javascript://", :class => "open_attachment"%>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <div class="grid_1 omega">
      <ul>
        <li>
          <%= link_to "[x]", artist_work_path(work.artist, work), :method => :delete, :confirm => "remover #{work.name}?"%>
        </li>
      </ul>
    </div>
  </div>
  <div class="grid_19 tpush_2" style="overflow:hidden;">
    <% work.images.each do |image| %>
      <%= image_tag image.photo.thumb(Work.style_grid_5).url, :class => "attachment-grid_3"%>
    <% end %>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
attachment_magick-0.3.6 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3.5 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3.4 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3.3 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3.2 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3.1 test/dummy/app/views/works/index.html.erb
attachment_magick-0.3 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.7 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.6 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.5 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.4 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.3 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.2 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.1 test/dummy/app/views/works/index.html.erb
attachment_magick-0.2.0 test/dummy/app/views/works/index.html.erb
attachment_magick-0.1.0 test/dummy/app/views/works/index.html.erb