Sha256: 1d52931251059e68e28e5c148d7cc8de3f25240e961aa062c7aa2bd8e2531304

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 KB

Contents

<section id="highlighted_initiatives" class="wrapper-home home-section">
  <div class="row" id="highlighted-initiatives">
    <h3 class="section-heading"><%= t("active_initiatives", scope: i18n_scope) %></h3>
    <div class="row collapse">
      <div class="row small-up-1 smallmedium-up-2 mediumlarge-up-3 large-up-4 card-grid">
        <% highlighted_initiatives.each do |initiative| %>
          <div class="column">
            <%= link_to decidim_initiatives.initiative_path(initiative), class: "card card--initiative card--mini" do %>
              <div aria-hidden="true" class="card__image-top"
                style="background-image:url('<%= initiative.banner_image.path %>')"></div>
              <span class="show-for-sr"><%= decidim_escape_translated initiative.title %></span>
              <div class="card__content">
                <span class="card__title card__link"><%= decidim_escape_translated(initiative.title) %></span>
              </div>
            <% end %>
          </div>
        <% end %>
      </div>
    </div>
  </div>

  <div class="row" id="see-all-initiatives">
    <div class="columns small-centered small-12 smallmedium-8 medium-6 large-4">
      <%= link_to t("see_all_initiatives", scope: i18n_scope), decidim_initiatives.initiatives_path,
                  class: "button expanded hollow button--sc home-section__cta" %>
    </div>
  </div>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-initiatives-0.27.9 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb
decidim-initiatives-0.27.8 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb
decidim-initiatives-0.27.7 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb
decidim-initiatives-0.27.6 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb