Skip to content

Commit

Permalink
remove empty link
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed May 22, 2024
1 parent 0299817 commit f987b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 5 additions & 4 deletions app/cells/decidim/vocdoni/election_vote_cta/show.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
<% elsif !model.finished? %>
<button class="button button__lg button__secondary w-full" disabled><%= t("action_button.vote", scope: "decidim.vocdoni.elections.show") %></button>
<% end %>
<% if preview_mode? && can_preview? %>
</div>
<% if preview_mode? && can_preview? %>
<div>
<%= link_to new_election_vote_path, class: "button button__lg button__secondary w-full mt-4" do %>
<%= t("preview", scope: "decidim.vocdoni.elections.show") %>
<% end %>
<% end %>
</div>
</div>
<% end %>
<p class="election__aside-heading"><%= t("verify.already_voted", scope: "decidim.vocdoni.elections.show") %></p>

<div class="election__aside-link">
Expand Down
4 changes: 1 addition & 3 deletions app/cells/decidim/vocdoni/voting_step_navigation/show.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<%= append_javascript_pack_tag "decidim_vocdoni_voter_new_vote" %>
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
<% if first_step? %>
<a></a>
<% else %>
<% unless first_step? %>
<%= link_to(
icon("arrow-left-line", class: "icon", role: "img", "aria-hidden": true) + " " + t("decidim.vocdoni.votes.voting_step.back"),
"#",
Expand Down

0 comments on commit f987b05

Please sign in to comment.