- <% if voted_for?(@proposal_votes, proposal) %>
-
- <%= t("proposals.proposal.already_supported") %>
-
- <% elsif user_signed_in? && proposal.votable_by?(current_user) %>
- <%= link_to vote_url,
- class: "button button-support small expanded",
- title: t('proposals.proposal.support_title'), method: "post", remote: true do %>
- <%= t("proposals.proposal.support") %>
+
+ <% if voted_for?(@proposal_votes, proposal) %>
+
+ <%= t("proposals.proposal.already_supported") %>
+
+ <% elsif user_signed_in? && proposal.votable_by?(current_user) %>
+ <%= link_to vote_url,
+ class: "button button-support small expanded",
+ title: t('proposals.proposal.support_title'), method: "post", remote: true do %>
+ <%= t("proposals.proposal.support") %>
+ <% end %>
+ <% else %>
+
+ <%= t("proposals.proposal.support") %>
+
<% end %>
- <% else %>
-
- <%= t("proposals.proposal.support") %>
+
+
+ <% if user_signed_in? && current_user.organization? %>
+
+
+ <%= t("votes.organizations") %>
+
+
+ <% elsif user_signed_in? && !proposal.votable_by?(current_user) %>
+
+
+
+ <%= t("votes.verified_only",
+ verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
+
+
+
+ <% elsif !user_signed_in? %>
+
+
+ <%= t("votes.unauthenticated",
+ signin: link_to(t("votes.signin"), new_user_session_path),
+ signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
+
+
+ <% end %>
+
+ <% if voted_for?(@proposal_votes, proposal) && setting['twitter_handle'] %>
+
+ <%= social_share_button_tag("#{proposal.title} #{setting['twitter_hashtag']}", url: proposal_url(proposal), via: setting['twitter_handle']) %>
<% end %>
-
-<% if user_signed_in? && current_user.organization? %>
-
-
- <%= t("votes.organizations") %>
-
-
-<% elsif user_signed_in? && !proposal.votable_by?(current_user) %>
-
-
-
- <%= t("votes.verified_only",
- verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
-
-
-
-<% elsif !user_signed_in? %>
-
-
- <%= t("votes.unauthenticated",
- signin: link_to(t("votes.signin"), new_user_session_path),
- signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
-
-
-<% end %>
-
-<% if voted_for?(@proposal_votes, proposal) && setting['twitter_handle'] %>
-
- <%= social_share_button_tag("#{proposal.title} #{setting['twitter_hashtag']}", url: proposal_url(proposal), via: setting['twitter_handle']) %>
-
-<% end %>