Sha256: da8c37ea858ef6fa8a1f49d758c63c417a8e8010142bc4cde786516a8de38452

Contents?: true

Size: 1.81 KB

Versions: 7

Compression:

Stored size: 1.81 KB

Contents

<% add_decidim_meta_tags(
  title: translated_attribute(election.title),
  description: translated_attribute(election.description)
) %>

<%
edit_link(
  resource_locator(election).edit,
  :update,
  :election,
  election: election
)
%>

<%= render partial: "decidim/shared/component_announcement" %>

<div class="row">
  <div class="columns">

    <% unless single? %>
      <%= link_to :elections, class: "small hollow" do %>
        <%= icon "caret-left", class: "icon--small" %>
        <%= t(".back") %>
      <% end %>
    <% end %>

    <h1 class="heading3">
      <%== present(election).title %>
    </h1>
    <div class="card__callout">
      <%= cell "decidim/elections/remaining_time_callout", election %>
    </div>
    <p>
      <%= t(".voting_period_status.#{election.voting_period_status}",
            start_time: "<strong>#{l election.start_time, format: :long}</strong>",
            end_time: "<strong>#{l election.end_time, format: :long}</strong>").html_safe %>
    </p>
  </div>
</div>
<div class="row section">
  <% if election.attachments.first.present? && election.attachments.first.image? %>
    <div class="columns medium-4 mediumlarge-5">
      <img src="<%= election.attachments.first.url %>" alt="">
    </div>
  <% end %>
  <div class="columns medium-8 mediumlarge-7">
    <div class="section">
      <p><%= decidim_sanitize(simple_format(translated_attribute(election.description)), strip_tags: true) %></p>

      <%= cell("decidim/elections/election_vote_cta", election) %>

      <%= link_to(t(".election_log"), election_log_election_path(election), class:"text-sm") %>
    </div>
  </div>
</div>

<% if onboarding %>
  <%= render partial: "decidim/elections/votes/onboarding_modal" %>
<% end %>

<%= cell("decidim/elections/election_preview", election) %>

<%= cell("decidim/elections/election_results", election) %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-elections-0.25.2 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.1 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.0 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.0.rc4 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.0.rc3 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.0.rc2 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.25.0.rc1 app/views/decidim/elections/elections/show.html.erb