Sha256: d382a2dbebae4e2fdfe6068ac836485bd98faf3f9eb3ddabb2ad912ef24c1a05

Contents?: true

Size: 1.46 KB

Versions: 10

Compression:

Stored size: 1.46 KB

Contents

<div class="consultations-header row column">
  <div class="row column consultations-header__main"
       style="background-image:url(<%= question.attached_uploader(:banner_image).path %>);">
    <div class="consultations-header__container row">
      <div class="columns mediumlarge-9 consultations-header__info">
        <div>
          <h1 class="text-highlight heading2">
            <%= link_to translated_attribute(question.consultation.title),
                        decidim_consultations.consultation_path(question.consultation) %>
          </h1>
          <%= link_to decidim_consultations.consultations_path, class: "consultations-header__link" do %>
            <%= t ".back_to_consultation" %>
            <%= icon "media-play", role: "img", "aria-hidden": true %>
          <% end %>
        </div>
      </div>

      <%= render partial: "layouts/decidim/consultation_voting_data", locals: { consultation: question.consultation } %>
    </div>
  </div>
</div>

<%= yield :question_header_instructions if content_for? :question_header_instructions %>

<div class="row column consultations-title">
  <h1 class="heading2"><%= decidim_sanitize translated_attribute question.title %></h1>
  <% unless question.hashtag.blank? %>
    <div class="text-center">
      <%= link_to "##{question.hashtag}", "https://twitter.com/hashtag/#{question.hashtag}", target: "_blank" %>
    </div>
  <% end %>

  <%= yield :question_header_details if content_for? :question_header_details %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-consultations-0.26.0 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.26.0.rc2 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.26.0.rc1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.2 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.0 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.0.rc4 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.0.rc3 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.0.rc2 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.25.0.rc1 app/views/layouts/decidim/_question_header.html.erb