Sha256: 4904a8effffa418e17c0847684eb5786b22d27037ce1a84cd50403e17ae102d8

Contents?: true

Size: 1.4 KB

Versions: 32

Compression:

Stored size: 1.4 KB

Contents

<div class="row">
  <div class="col">
    <% section.testimonials&.each do |testimonial|
      next unless testimonial %>
      <div class="section-testimonials__item">
        <% if testimonial.photo %>
          <div class="section-testimonials__item-sidebar"
            style="background-image: url(<%= testimonial.photo.file.url %>);">
          </div>
        <% end %>
        <div class="section-testimonials__item-card">
          <% if testimonial.quote.present? %>
            <div
              class="section-testimonials__item-card-quote
                safe-line-break"><%= safe_line_break(testimonial.quote) %></div>
          <% end %>
          <div class="section-testimonials__item-card-meta">
            <% if testimonial.photo %>
              <%= image_tag(testimonial.photo.file.url,
                    alt: testimonial.photo.description || testimonial.photo.title,
                    class: 'section-testimonials__item-card-meta-photo') %>
            <% end %>

            <h3 class="section-testimonials__item-card-meta-name">
              <%= testimonial.name %>
            </h3>
            <% if testimonial.mini_bio %>
              <div class="section-testimonials__item-card-meta-bio">
                <%= markdown(testimonial.mini_bio) %>
              </div>
            <% end %>
          </div>
        </div>
      </div><!--quotation-->

    <% end %>
  </div><!--column-->
</div><!--row-->

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
wcc-contentful-app-1.0.8 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.7 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.6 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.5 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.4 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.3 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.2 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.1 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.0 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.0.pre.rc3 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.0.pre.rc2 app/views/sections/_testimonials.html.erb
wcc-contentful-app-1.0.0.pre.rc1 app/views/sections/_testimonials.html.erb