Sha256: 763b2b05ea91afa7f805954e376b50193954851693f7df2af158e14f603e241e

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 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

2 entries across 2 versions & 1 rubygems

Version Path
lentil-0.3.1 app/views/lentil/images/_image_tiles.erb
lentil-0.3.0 app/views/lentil/images/_image_tiles.erb