Sha256: d18a2c195162c007b2d86a5a01c2ee0f5ffb24384e65509663e1caa5e28be35c

Contents?: true

Size: 915 Bytes

Versions: 14

Compression:

Stored size: 915 Bytes

Contents

    <div class="images">
      <% @images.each do |image| %>
        <div id="image_<%= image.id %>" class="grid-cell image-tile">
          <%= link_to url_for(image), 'data-fancybox-href' => image.jpeg, 'data-fancybox-group' => "image-tile-gallery",  :class => :fancybox  do %>
            <%= image_tag(image.jpeg, :class => "instagram-img " + image.id.to_s, :alt => image.description, :data => {:battles_count => image.battles_count, :win_pct => image.win_pct, :popularity => image.popular_score, :staff_like => image.staff_like, :like_votes_count => image.like_votes_count}) %>
          <% end %>

          <%= render "/layouts/lentil/image_popup", :image => image  %>
          <% if params[:controller] == "lentil/thisorthat" %>
            <div class="battle-leader-overlay"><%= number_to_percentage(image.win_pct, :precision => 0) %></div>
          <% end -%>
        </div>
      <% end -%>
    </div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lentil-0.2.3 app/views/lentil/images/_image_tiles.erb
lentil-0.2.2 app/views/lentil/images/_image_tiles.erb
lentil-0.2.1 app/views/lentil/images/_image_tiles.erb
lentil-0.2.0 app/views/lentil/images/_image_tiles.erb
lentil-0.1.8 app/views/lentil/images/_image_tiles.erb
lentil-0.1.7 app/views/lentil/images/_image_tiles.erb
lentil-0.1.6 app/views/lentil/images/_image_tiles.erb
lentil-0.1.3 app/views/lentil/images/_image_tiles.erb
lentil-0.1.2 app/views/lentil/images/_image_tiles.erb
lentil-0.1.1 app/views/lentil/images/_image_tiles.erb
lentil-0.1.0 app/views/lentil/images/_image_tiles.erb
lentil-0.0.3.pre app/views/lentil/images/_image_tiles.erb
lentil-0.0.2.pre app/views/lentil/images/_image_tiles.erb
lentil-0.0.1.pre app/views/lentil/images/_image_tiles.erb