Sha256: c90321051e76f8122b72be69c1b5533220341a73f282ce3b30bcc1cbf0b12cc6

Contents?: true

Size: 1.76 KB

Versions: 4

Compression:

Stored size: 1.76 KB

Contents

<% cta_settings = participatory_process_group_cta_settings(promoted_process_group) %>
<div class="card card--full card--process">
  <div class="row collapse card--process__row">
    <div class="columns mediumlarge-8 large-6 card--process__column">
      <div class="card__content">
        <%= link_to participatory_process_group_path(promoted_process_group), class: "card__link" do %>
          <h2 class="card__title"><%= decidim_html_escape(translated_attribute(promoted_process_group.title)).html_safe %></h2>
        <% end %>
        <%= decidim_sanitize_editor html_truncate(translated_attribute(promoted_process_group.description), length: 630, separator: "...") %>
        <%= link_to participatory_process_group_path(promoted_process_group), class: "button small hollow card__button" do %>
          <span class="show-for-sr"><%= decidim_html_escape(translated_attribute(promoted_process_group.title)) %></span>
          <%= t("participatory_processes.promoted_process_group.more_info", scope: "layouts.decidim") %>
        <% end %>
      </div>
    </div>
    <div class="columns mediumlarge-8 large-6 card--process__column">
      <div class="card--full__image" style="background-image:url(<%= cta_settings&.image_url || promoted_process_group.attached_uploader(:hero_image).path %>)">
        <% if cta_settings.present? %>
          <div class="card__content row collapse">
            <div class="large-6 large-offset-6 columns">
              <%= link_to cta_settings.path, class: "button expanded button--sc" do %>
                <span class="show-for-sr"><%= cta_settings.text %></span>
                <span aria-hidden="true"><%= cta_settings.text %></span>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.27.0.rc1 app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb
decidim-participatory_processes-0.26.2 app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb
decidim-participatory_processes-0.26.1 app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb
decidim-participatory_processes-0.26.0 app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb