Sha256: 7b8e46c1caa247a352756781892b6cd10cacc23f70f6b03dda4f8cc9d1b250fe

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 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_editor(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

3 entries across 3 versions & 1 rubygems

Version Path
decidim-elections-0.26.0 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.26.0.rc2 app/views/decidim/elections/elections/show.html.erb
decidim-elections-0.26.0.rc1 app/views/decidim/elections/elections/show.html.erb