Sha256: b6ec9327f173f36ab5e7cecd19d4ea91215556c15bfa24fbe95a9ca1f2b1be3e

Contents?: true

Size: 1.27 KB

Versions: 31

Compression:

Stored size: 1.27 KB

Contents

<% if model.ongoing? && already_voted? %>
  <%= cell("decidim/announcement", callout_text) %>
<% end %>

<div>
  <% if model.ongoing? %>
    <% if vote_flow.login_path(new_election_vote_path) %>
      <%= link_to vote_flow.login_path(new_election_vote_path), class: "button button--sc" do %>
        <%= vote_action_button_text %>
      <% end %>
    <% else %>
      <%= action_authorized_link_to :vote, new_election_vote_path, resource: model, class: "button button--sc" do %>
        <%= vote_action_button_text %>
      <% end %>
    <% end %>
  <% elsif !model.finished? %>
    <span class="button button--sc disabled"><%= t("action_button.vote", scope: "decidim.elections.elections.show") %></span>
  <% end %>

  <% if preview_mode? && can_preview? %>
    <%= link_to new_election_vote_path, class: "button button--sc" do %>
      <%= t("preview", scope: "decidim.elections.elections.show") %>
    <% end %>
  <% end %>
</div>

<div class="text-sm">
<% if model.started? %>
  <%= t("verify.already_voted", scope: "decidim.elections.elections.show") %>

  <%= link_to t("verify.verify_here", scope: "decidim.elections.elections.show"), election_vote_verify_path %>
<% else %>
  <span class="disabled"><%= t("verify.will_verify", scope: "decidim.elections.elections.show") %></span>
<% end %>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.8 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.7 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.6 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.10 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.9 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.5 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.8 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.4 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.3 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.7 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.5 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.2 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.1 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.4 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.0 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.3 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.0.rc2 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.27.0.rc1 app/cells/decidim/elections/election_vote_cta/show.erb
decidim-elections-0.26.2 app/cells/decidim/elections/election_vote_cta/show.erb