Sha256: 0df7e84e72cc725e09c3c387e6826f6363d8d43b2cb615d96cc336c2defd6d67

Contents?: true

Size: 1.57 KB

Versions: 11

Compression:

Stored size: 1.57 KB

Contents

<% for artist in @artists %>
  <div class="grid_19 menu">
    <div class="grid_2 alpha">
      <p>
        <%= link_to "#{artist.name} #{artist.lastname}", edit_artist_path(artist)%>
      </p>
    </div>
    <% unless artist.images.empty? %>
      <div class="grid_16">
        <ul>
          <% Artist.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_10 ? "active" : ""%>">
              <%= link_to "#{style}", "javascript://", :class => "open_attachment"%>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <div class="grid-1 omega">
      <ul>
        <li>
          <%= link_to "[x]", artist_path(artist), :method => :delete, :confirm => "remover #{artist.name}?"%>
        </li>
      </ul>
    </div>
  </div>
  <div class="grid_19 tpush_2">
    <%artist.images.each do |image|%>
      <%= image_tag image.photo.thumb(Artist.style_thumb).url,    :class => "attachment-thumb hide"%>
      <%= image_tag image.photo.thumb(Artist.style_grid_1).url,   :class => "attachment-grid_1 hide"%>
      <%= image_tag image.photo.thumb(Artist.style_grid_10).url,  :class => "attachment-grid_10"%>
      <%= image_tag image.photo.thumb(Artist.style_grid_15).url,  :class => "attachment-grid_15 hide"%>
      <%= image_tag image.photo.thumb(Artist.style_grid_16).url,  :class => "attachment-grid_16 hide"%>
      <%= image_tag image.photo.thumb(Artist.style_publisher).url,  :class => "attachment-publisher hide"%>
    <% end %>
  </div>
<% end %>


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
attachment_magick-0.3.1 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.3 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.7 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.6 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.5 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.4 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.3 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.2 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.1 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.2.0 test/dummy/app/views/artists/index.html.erb
attachment_magick-0.1.0 test/dummy/app/views/artists/index.html.erb