Sha256: c33cc3a7a1abb0551fb4c458bcb4db2a5859229a727f04446ebd8f48bfdd09c5

Contents?: true

Size: 1.34 KB

Versions: 18

Compression:

Stored size: 1.34 KB

Contents

<%= link_to consultation_path(consultation), class: "consultations-banner" do %>
  <div class="consultations-header consultations-home-banner row column">
    <div class="row column consultations-header__main"
         style="background-image:url('<%= consultation.attached_uploader(:banner_image).path %>');">
      <div class="consultations-header__container row">
        <div class="columns mediumlarge-9 consultations-header__info">
          <div>
            <h1 class="heading2 text-highlight"><%= translated_attribute consultation.title %></h1>
            <p class="text-highlight"><%= translated_attribute consultation.subtitle %></p>
          </div>
        </div>

        <div class="columns mediumlarge-3">
          <div class="consultations-header__extra">
            <div>
              <% if consultation.active? %>
                <span class="consultations-header__extra-title"><%= t ".start_voting_date" %></span>
                <span class="consultations-header__extra-date">
                  <%= l consultation.start_voting_date %>
                </span>
              <% end %>

              <% if consultation.finished? %>
                <span class="button consultations-banner__action"><%= t ".view_results" %></span>
              <% end %>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
decidim-consultations-0.27.9 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.8 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.7 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.6 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.10 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.9 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.5 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.8 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.4 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.3 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.7 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.5 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.2 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.1 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.4 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.0 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.26.3 app/views/decidim/consultations/_consultation.html.erb
decidim-consultations-0.27.0.rc2 app/views/decidim/consultations/_consultation.html.erb