diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 4c33f6b97..5fc0d6722 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -34,12 +34,6 @@ <% @questions.each do |question| %> <%= render "polls/questions/question", question: question, token: @token %> <% end %> - - <% if poll_voter_token(@poll, current_user).empty? %> - - <% end %> diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index 6a2ac8b28..820319ae6 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -668,7 +668,6 @@ en: show: vote_answer: "Vote %{answer}" voted: "You have voted %{answer}" - voted_token: "You can write down this vote identifier, to check your vote on the final results:" proposal_notifications: new: title: "Send message" diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index f479bb7dd..deb858d95 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -668,7 +668,6 @@ es: show: vote_answer: "Votar %{answer}" voted: "Has votado %{answer}" - voted_token: "Puedes apuntar este identificador de voto, para comprobar tu votación en el resultado final:" proposal_notifications: new: title: "Enviar mensaje" diff --git a/spec/features/polls/voter_spec.rb b/spec/features/polls/voter_spec.rb index 9310c2438..0d358e3ec 100644 --- a/spec/features/polls/voter_spec.rb +++ b/spec/features/polls/voter_spec.rb @@ -30,11 +30,6 @@ feature "Voter" do expect(page).not_to have_link(answer_yes.title) end - expect(page).to have_css(".js-token-message", visible: true) - token = find(:css, ".js-question-answer")[:href].gsub(/.+?(?=token)/, "").gsub("token=", "") - - expect(page).to have_content "You can write down this vote identifier, to check your vote on the final results: #{token}" - expect(Poll::Voter.count).to eq(1) expect(Poll::Voter.first.origin).to eq("web") end