Sha256: 589e784dbf0f12b9e2527a3d952476ae65b4a252f5e42802f608f1d86ff6d4c2

Contents?: true

Size: 639 Bytes

Versions: 55

Compression:

Stored size: 639 Bytes

Contents

<% if photos.any? %>
  <div class="section images">
    <h4 class="section-heading"><%= t(".related_photos") %></h4>
    <div class="gallery row">
      <% photos.in_groups_of(3, false).each do |group| %>
        <% group.each_with_index do |photo, index| %>
          <div class="columns small-6 medium-4 <%= (index == 2 || photo == group.last ? "end" : "") %>">
            <%= link_to photo.big_url do %>
              <%= image_tag photo.thumbnail_url, class:"thumbnail", alt: strip_tags(translated_attribute(photo.description)) %>
            <% end %>
          </div>
        <% end %>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
decidim-core-0.4.1 app/views/decidim/application/_photos.html.erb
decidim-core-0.4.3 app/views/decidim/application/_photos.html.erb
decidim-core-0.4.0 app/views/decidim/application/_photos.html.erb
decidim-core-0.3.2 app/views/decidim/application/_photos.html.erb
decidim-core-0.3.1 app/views/decidim/application/_photos.html.erb
decidim-core-0.3.0 app/views/decidim/application/_photos.html.erb
decidim-core-0.2.0 app/views/decidim/application/_photos.html.erb
decidim-core-0.1.0 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.8.1 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.7 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.6 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.5 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.3 app/views/decidim/application/_photos.html.erb
decidim-core-0.0.2 app/views/decidim/participatory_processes/_photos.html.erb
decidim-core-0.0.1 app/views/decidim/participatory_processes/_photos.html.erb