Sha256: 438d3cb108733aecbff7a502ab0ebc89b4ea7728aa4231b90196c0fde366a458

Contents?: true

Size: 1.92 KB

Versions: 22

Compression:

Stored size: 1.92 KB

Contents

<article class="card consultations-card">
  <div class="row collapse card--process__row">
    <div class="columns mediumlarge-8 large-9 card--process__column">
      <div class="card__content">
        <%= link_to decidim_consultations.question_path(question), class: "card__link" do %>
          <h2 class="heading5"><%= decidim_sanitize translated_attribute question.title %></h2>
        <% end %>
        <p><%= translated_attribute question.subtitle %></p>
      </div>
    </div>

    <div class="columns mediumlarge-8 large-3 card--process__column">
      <div class="card--full__image consultations-card__image"
           style="background-image: url(<%= question.banner_image_url %>)">
        <div class="card__content row collapse">
          <div class="columns large-10 large-push-1">
            <% if question.results_published? %>
              <%= link_to decidim_consultations.question_path(question),
                          class: "button expanded button--sc" do %>
                <%= t "consultations.question.view_results", scope: "decidim" %>
                <% if question.most_voted_response.present? %>
                  <span class="button__info"><%= translated_attribute question.most_voted_response.title %></span>
                  <span class="button__info">
                    <%= question.most_voted_response.votes_count %>
                    <%= t "consultations.question.votes_out_of", scope: "decidim", count: question.most_voted_response.votes_count %>
                    <%= question.total_votes %>
                  </span>
                <% end %>
              <% end %>
            <% else %>
              <%= link_to t("consultations.question.take_part", scope: "decidim"),
                          decidim_consultations.question_path(question),
                          class: "button expanded button--sc" %>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div>
</article>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
decidim-consultations-0.17.2 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.17.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.16.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.17.0 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.16.0 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.15.2 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.15.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.15.0 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.14.4 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.14.3 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.14.2 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.14.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.13.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.12.2 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.13.0 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.12.1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.13.0.pre1 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.12.0 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.11.2 app/views/decidim/consultations/consultations/_question.html.erb
decidim-consultations-0.12.0.pre app/views/decidim/consultations/consultations/_question.html.erb