Sha256: b5b9509bc0b94bbf7be5b72a82338d2b3539f1a4ffa16ac91642e55d77d1df20

Contents?: true

Size: 1.85 KB

Versions: 10

Compression:

Stored size: 1.85 KB

Contents

<div class="consultations-header row column">
  <div class="row column consultations-header__main"
       style="background-image:url(<%= question.banner_image_url %>);">
    <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" %>
          <% end %>
        </div>
      </div>

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

<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>

<% if question.external_voting %>
  <iframe src="<%= question.i_frame_url %>"></iframe>
<% else %>
  <% if question.results_published? %>
    <%= render partial: "decidim/consultations/questions/results", locals: { question: question } %>
  <% else %>
    <div id="question-<%= question.id %>-vote-button">
      <%= render partial: "decidim/consultations/questions/vote_button", locals: { question: question } %>
    </div>
  <% end %>
<% end %>

<%= render partial: "layouts/decidim/question_components", locals: { question: question} %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-consultations-0.13.1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.12.2 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.13.0 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.12.1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.13.0.pre1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.12.0 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.11.2 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.12.0.pre app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.11.1 app/views/layouts/decidim/_question_header.html.erb
decidim-consultations-0.11.0.pre1 app/views/layouts/decidim/_question_header.html.erb