Use the same key for "signin" and "signup" texts
We were using the same texts in several places
This commit is contained in:
@@ -45,10 +45,9 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout primary margin-top">
|
<div class="callout primary margin-top">
|
||||||
<%= t("budgets.investments.index.sidebar.not_logged_in",
|
<%= t("budgets.investments.index.sidebar.not_logged_in",
|
||||||
sign_in: link_to(t("budgets.investments.index.sidebar.sign_in"),
|
sign_in: link_to(t("users.signin"), new_user_session_path),
|
||||||
new_user_session_path),
|
sign_up: link_to(t("users.signup"), new_user_registration_path)
|
||||||
sign_up: link_to(t("budgets.investments.index.sidebar.sign_up"),
|
).html_safe %>
|
||||||
new_user_registration_path)).html_safe %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -43,10 +43,9 @@
|
|||||||
<% if reason.present? && !ballot.has_investment?(investment) %>
|
<% if reason.present? && !ballot.has_investment?(investment) %>
|
||||||
|
|
||||||
<div class="js-participation-not-allowed participation-not-allowed" style="display:none">
|
<div class="js-participation-not-allowed participation-not-allowed" style="display:none">
|
||||||
|
|
||||||
<% verify_account = link_to(t("votes.verify_account"), verification_path) %>
|
<% verify_account = link_to(t("votes.verify_account"), verification_path) %>
|
||||||
<% signin = link_to(t("votes.signin"), new_user_session_path) %>
|
<% signin = link_to(t("users.signin"), new_user_session_path) %>
|
||||||
<% signup = link_to(t("votes.signup"), new_user_registration_path) %>
|
<% signup = link_to(t("users.signup"), new_user_registration_path) %>
|
||||||
<% my_heading = link_to(investment.heading.name,
|
<% my_heading = link_to(investment.heading.name,
|
||||||
budget_investments_path(budget_id: investment.budget_id,
|
budget_investments_path(budget_id: investment.budget_id,
|
||||||
heading_id: investment.heading_id)) %>
|
heading_id: investment.heading_id)) %>
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
<%= t("votes.budget_investments.#{reason}",
|
<%= t("votes.budget_investments.#{reason}",
|
||||||
count: investment.group.max_votable_headings,
|
count: investment.group.max_votable_headings,
|
||||||
verify_account: link_to(t("votes.verify_account"), verification_path),
|
verify_account: link_to(t("votes.verify_account"), verification_path),
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path),
|
signup: link_to(t("users.signup"), new_user_registration_path),
|
||||||
supported_headings: (current_user && current_user.headings_voted_within_group(investment.group).map(&:name).sort.to_sentence)
|
supported_headings: (current_user && current_user.headings_voted_within_group(investment.group).map(&:name).sort.to_sentence)
|
||||||
).html_safe %>
|
).html_safe %>
|
||||||
</small>
|
</small>
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout primary margin-top">
|
<div class="callout primary margin-top">
|
||||||
<%= t("budgets.investments.index.sidebar.not_logged_in",
|
<%= t("budgets.investments.index.sidebar.not_logged_in",
|
||||||
sign_in: link_to(t("budgets.investments.index.sidebar.sign_in"), new_user_session_path),
|
sign_in: link_to(t("users.signin"), new_user_session_path),
|
||||||
sign_up: link_to(t("budgets.investments.index.sidebar.sign_up"), new_user_registration_path)).html_safe %>
|
sign_up: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -59,9 +59,9 @@
|
|||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div tabindex="0">
|
<div tabindex="0">
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("votes.unauthenticated",
|
<%= t("users.login_to_continue",
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
<% if not current_user %>
|
<% if not current_user %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<p>
|
<p>
|
||||||
<%= t("users.direct_messages.new.authenticate",
|
<%= t("users.login_to_continue",
|
||||||
signin: link_to(t("users.direct_messages.new.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("users.direct_messages.new.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% elsif not @receiver.email_on_direct_message? %>
|
<% elsif not @receiver.email_on_direct_message? %>
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p>
|
<p>
|
||||||
<%= t("annotator.help.text",
|
<%= t("annotator.help.text",
|
||||||
sign_in: link_to(t("annotator.help.text_sign_in"), new_user_session_path),
|
sign_in: link_to(t("users.signin"), new_user_session_path),
|
||||||
sign_up: link_to(t("annotator.help.text_sign_up"), new_user_registration_path)).html_safe %>
|
sign_up: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("votes.unauthenticated",
|
<%= t("votes.unauthenticated",
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -61,9 +61,9 @@
|
|||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div tabindex="0">
|
<div tabindex="0">
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("votes.unauthenticated",
|
<%= t("users.login_to_continue",
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("legislation.questions.participation.unauthenticated",
|
<%= t("legislation.questions.participation.unauthenticated",
|
||||||
signin: link_to(t("legislation.questions.participation.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("legislation.questions.participation.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif !@process.debate_phase.open? %>
|
<% elsif !@process.debate_phase.open? %>
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<% if current_user.nil? %>
|
<% if current_user.nil? %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<%= t("polls.show.cant_answer_not_logged_in",
|
<%= t("polls.show.cant_answer_not_logged_in",
|
||||||
signin: link_to(t("polls.show.signin"), new_user_session_path, class: "probe-message"),
|
signin: link_to(t("users.signin"), new_user_session_path, class: "probe-message"),
|
||||||
signup: link_to(t("polls.show.signup"), new_user_registration_path, class: "probe-message")).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path, class: "probe-message")).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif current_user.unverified? %>
|
<% elsif current_user.unverified? %>
|
||||||
<div class="callout warning">
|
<div class="callout warning">
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("votes.unauthenticated",
|
<%= t("users.login_to_continue",
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -37,9 +37,9 @@
|
|||||||
<% elsif !user_signed_in? %>
|
<% elsif !user_signed_in? %>
|
||||||
<div tabindex="0">
|
<div tabindex="0">
|
||||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||||
<%= t("votes.unauthenticated",
|
<%= t("users.login_to_continue",
|
||||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
signin: link_to(t("users.signin"), new_user_session_path),
|
||||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
signup: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<%= t("community.show.create_first_community_topic.sub_first_theme",
|
<%= t("community.show.create_first_community_topic.sub_first_theme",
|
||||||
sign_in: link_to(t("community.show.create_first_community_topic.sign_in"), new_user_session_path),
|
sign_in: link_to(t("users.signin"), new_user_session_path),
|
||||||
sign_up: link_to(t("community.show.create_first_community_topic.sign_up"), new_user_registration_path)).html_safe %>
|
sign_up: link_to(t("users.signup"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -98,8 +98,6 @@ en:
|
|||||||
verify_account: "verify your account"
|
verify_account: "verify your account"
|
||||||
create: "Create a budget investment"
|
create: "Create a budget investment"
|
||||||
not_logged_in: "To create a new budget investment you must %{sign_in} or %{sign_up}."
|
not_logged_in: "To create a new budget investment you must %{sign_in} or %{sign_up}."
|
||||||
sign_in: "sign in"
|
|
||||||
sign_up: "sign up"
|
|
||||||
by_feasibility: By feasibility
|
by_feasibility: By feasibility
|
||||||
feasible: Feasible projects
|
feasible: Feasible projects
|
||||||
unfeasible: Unfeasible projects
|
unfeasible: Unfeasible projects
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ en:
|
|||||||
first_theme_not_logged_in: No issue available, participate creating the first one.
|
first_theme_not_logged_in: No issue available, participate creating the first one.
|
||||||
first_theme: Create the first community topic
|
first_theme: Create the first community topic
|
||||||
sub_first_theme: "To create a theme you must %{sign_in} or %{sign_up}."
|
sub_first_theme: "To create a theme you must %{sign_in} or %{sign_up}."
|
||||||
sign_in: "sign in"
|
|
||||||
sign_up: "sign up"
|
|
||||||
tab:
|
tab:
|
||||||
participants: Participants
|
participants: Participants
|
||||||
sidebar:
|
sidebar:
|
||||||
|
|||||||
@@ -665,8 +665,6 @@ en:
|
|||||||
back: Back to voting
|
back: Back to voting
|
||||||
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."
|
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."
|
||||||
comments_tab: Comments
|
comments_tab: Comments
|
||||||
signin: Sign in
|
|
||||||
signup: Sign up
|
|
||||||
cant_answer_verify_html: "You must %{verify_link} in order to answer."
|
cant_answer_verify_html: "You must %{verify_link} in order to answer."
|
||||||
verify_link: "verify your account"
|
verify_link: "verify your account"
|
||||||
cant_answer_expired: "This poll has finished."
|
cant_answer_expired: "This poll has finished."
|
||||||
@@ -859,8 +857,9 @@ en:
|
|||||||
all: "You do not have permission to carry out the action '%{action}' on %{subject}."
|
all: "You do not have permission to carry out the action '%{action}' on %{subject}."
|
||||||
users:
|
users:
|
||||||
login_to_comment: "You must %{signin} or %{signup} to leave a comment."
|
login_to_comment: "You must %{signin} or %{signup} to leave a comment."
|
||||||
signin: Sign in
|
login_to_continue: "You must %{signin} or %{signup} to continue."
|
||||||
signup: Sign up
|
signin: "sign in"
|
||||||
|
signup: "sign up"
|
||||||
direct_messages:
|
direct_messages:
|
||||||
new:
|
new:
|
||||||
body_label: Message
|
body_label: Message
|
||||||
@@ -870,9 +869,6 @@ en:
|
|||||||
title_label: Title
|
title_label: Title
|
||||||
verified_only: To send a private message %{verify_account}
|
verified_only: To send a private message %{verify_account}
|
||||||
verify_account: verify your account
|
verify_account: verify your account
|
||||||
authenticate: You must %{signin} or %{signup} to continue.
|
|
||||||
signin: sign in
|
|
||||||
signup: sign up
|
|
||||||
show:
|
show:
|
||||||
receiver: Message sent to %{receiver}
|
receiver: Message sent to %{receiver}
|
||||||
show:
|
show:
|
||||||
@@ -921,7 +917,6 @@ en:
|
|||||||
disagree: I disagree
|
disagree: I disagree
|
||||||
organizations: Organizations are not permitted to vote
|
organizations: Organizations are not permitted to vote
|
||||||
supports: Supports
|
supports: Supports
|
||||||
unauthenticated: You must %{signin} or %{signup} to continue.
|
|
||||||
verified_only: Only verified users can vote on proposals; %{verify_account}.
|
verified_only: Only verified users can vote on proposals; %{verify_account}.
|
||||||
verify_account: verify your account
|
verify_account: verify your account
|
||||||
budget_investments:
|
budget_investments:
|
||||||
@@ -1002,8 +997,6 @@ en:
|
|||||||
help:
|
help:
|
||||||
alt: Select the text you want to comment and press the button with the pencil.
|
alt: Select the text you want to comment and press the button with the pencil.
|
||||||
text: To comment this document you must %{sign_in} or %{sign_up}. Then select the text you want to comment and press the button with the pencil.
|
text: To comment this document you must %{sign_in} or %{sign_up}. Then select the text you want to comment and press the button with the pencil.
|
||||||
text_sign_in: login
|
|
||||||
text_sign_up: sign up
|
|
||||||
title: How I can comment this document?
|
title: How I can comment this document?
|
||||||
links:
|
links:
|
||||||
form:
|
form:
|
||||||
|
|||||||
@@ -113,8 +113,6 @@ en:
|
|||||||
participation:
|
participation:
|
||||||
phase_not_open: This phase is not open
|
phase_not_open: This phase is not open
|
||||||
organizations: Organisations are not permitted to participate in the debate
|
organizations: Organisations are not permitted to participate in the debate
|
||||||
signin: Sign in
|
|
||||||
signup: Sign up
|
|
||||||
unauthenticated: You must %{signin} or %{signup} to participate.
|
unauthenticated: You must %{signin} or %{signup} to participate.
|
||||||
verified_only: Only verified users can participate, %{verify_account}.
|
verified_only: Only verified users can participate, %{verify_account}.
|
||||||
verify_account: verify your account
|
verify_account: verify your account
|
||||||
|
|||||||
@@ -98,8 +98,6 @@ es:
|
|||||||
verify_account: "verifica tu cuenta"
|
verify_account: "verifica tu cuenta"
|
||||||
create: "Crear proyecto de gasto"
|
create: "Crear proyecto de gasto"
|
||||||
not_logged_in: "Para crear un nuevo proyecto de gasto debes %{sign_in} o %{sign_up}."
|
not_logged_in: "Para crear un nuevo proyecto de gasto debes %{sign_in} o %{sign_up}."
|
||||||
sign_in: "iniciar sesión"
|
|
||||||
sign_up: "registrarte"
|
|
||||||
by_feasibility: Por viabilidad
|
by_feasibility: Por viabilidad
|
||||||
feasible: Ver los proyectos viables
|
feasible: Ver los proyectos viables
|
||||||
unfeasible: Ver los proyectos inviables
|
unfeasible: Ver los proyectos inviables
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ es:
|
|||||||
first_theme_not_logged_in: No hay ningún tema disponible, participa creando el primero.
|
first_theme_not_logged_in: No hay ningún tema disponible, participa creando el primero.
|
||||||
first_theme: Crea el primer tema de la comunidad
|
first_theme: Crea el primer tema de la comunidad
|
||||||
sub_first_theme: "Para crear un tema debes %{sign_in} o %{sign_up}."
|
sub_first_theme: "Para crear un tema debes %{sign_in} o %{sign_up}."
|
||||||
sign_in: "iniciar sesión"
|
|
||||||
sign_up: "registrarte"
|
|
||||||
tab:
|
tab:
|
||||||
participants: Participantes
|
participants: Participantes
|
||||||
sidebar:
|
sidebar:
|
||||||
|
|||||||
@@ -663,8 +663,6 @@ es:
|
|||||||
back: Volver a votaciones
|
back: Volver a votaciones
|
||||||
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."
|
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
signin: iniciar sesión
|
|
||||||
signup: registrarte
|
|
||||||
cant_answer_verify_html: "Por favor %{verify_link} para poder responder."
|
cant_answer_verify_html: "Por favor %{verify_link} para poder responder."
|
||||||
verify_link: "verifica tu cuenta"
|
verify_link: "verifica tu cuenta"
|
||||||
cant_answer_expired: "Esta votación ha terminado."
|
cant_answer_expired: "Esta votación ha terminado."
|
||||||
@@ -856,8 +854,9 @@ es:
|
|||||||
all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}."
|
all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}."
|
||||||
users:
|
users:
|
||||||
login_to_comment: "Necesitas %{signin} o %{signup} para comentar."
|
login_to_comment: "Necesitas %{signin} o %{signup} para comentar."
|
||||||
signin: iniciar sesión
|
login_to_continue: "Necesitas %{signin} o %{signup} para continuar."
|
||||||
signup: registrarte
|
signin: "iniciar sesión"
|
||||||
|
signup: "registrarte"
|
||||||
direct_messages:
|
direct_messages:
|
||||||
new:
|
new:
|
||||||
body_label: Mensaje
|
body_label: Mensaje
|
||||||
@@ -867,9 +866,6 @@ es:
|
|||||||
title_label: Título
|
title_label: Título
|
||||||
verified_only: Para enviar un mensaje privado %{verify_account}
|
verified_only: Para enviar un mensaje privado %{verify_account}
|
||||||
verify_account: verifica tu cuenta
|
verify_account: verifica tu cuenta
|
||||||
authenticate: Necesitas %{signin} o %{signup}.
|
|
||||||
signin: iniciar sesión
|
|
||||||
signup: registrarte
|
|
||||||
show:
|
show:
|
||||||
receiver: Mensaje enviado a %{receiver}
|
receiver: Mensaje enviado a %{receiver}
|
||||||
show:
|
show:
|
||||||
@@ -918,7 +914,6 @@ es:
|
|||||||
disagree: No estoy de acuerdo
|
disagree: No estoy de acuerdo
|
||||||
organizations: Las organizaciones no pueden votar.
|
organizations: Las organizaciones no pueden votar.
|
||||||
supports: Apoyos
|
supports: Apoyos
|
||||||
unauthenticated: Necesitas %{signin} o %{signup} para continuar.
|
|
||||||
verified_only: Las propuestas sólo pueden ser votadas por usuarios verificados, %{verify_account}.
|
verified_only: Las propuestas sólo pueden ser votadas por usuarios verificados, %{verify_account}.
|
||||||
verify_account: verifica tu cuenta
|
verify_account: verifica tu cuenta
|
||||||
budget_investments:
|
budget_investments:
|
||||||
|
|||||||
@@ -112,8 +112,6 @@ es:
|
|||||||
participation:
|
participation:
|
||||||
phase_not_open: Esta fase no está abierta
|
phase_not_open: Esta fase no está abierta
|
||||||
organizations: Las organizaciones no pueden participar en el debate
|
organizations: Las organizaciones no pueden participar en el debate
|
||||||
signin: iniciar sesión
|
|
||||||
signup: registrarte
|
|
||||||
unauthenticated: Necesitas %{signin} o %{signup} para participar en el debate.
|
unauthenticated: Necesitas %{signin} o %{signup} para participar en el debate.
|
||||||
verified_only: Solo los usuarios verificados pueden participar en el debate, %{verify_account}.
|
verified_only: Solo los usuarios verificados pueden participar en el debate, %{verify_account}.
|
||||||
verify_account: verifica tu cuenta
|
verify_account: verifica tu cuenta
|
||||||
|
|||||||
@@ -516,7 +516,7 @@ describe "Ballots" do
|
|||||||
|
|
||||||
within("#budget_investment_#{investment.id}") do
|
within("#budget_investment_#{investment.id}") do
|
||||||
find("div.ballot").hover
|
find("div.ballot").hover
|
||||||
expect(page).to have_content "You must Sign in or Sign up to continue."
|
expect(page).to have_content "You must sign in or sign up to continue."
|
||||||
expect(page).to have_selector(".in-favor a", visible: false)
|
expect(page).to have_selector(".in-favor a", visible: false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ describe "Commenting Budget::Investments" do
|
|||||||
create(:comment, commentable: investment)
|
create(:comment, commentable: investment)
|
||||||
visit budget_investment_path(investment.budget, investment)
|
visit budget_investment_path(investment.budget, investment)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ describe "Commenting debates" do
|
|||||||
create(:comment, commentable: debate)
|
create(:comment, commentable: debate)
|
||||||
visit debate_path(debate)
|
visit debate_path(debate)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ describe "Commenting legislation questions" do
|
|||||||
legislation_annotation.draft_version,
|
legislation_annotation.draft_version,
|
||||||
legislation_annotation)
|
legislation_annotation)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ describe "Commenting legislation questions" do
|
|||||||
create(:comment, commentable: legislation_question)
|
create(:comment, commentable: legislation_question)
|
||||||
visit legislation_process_question_path(legislation_question.process, legislation_question)
|
visit legislation_process_question_path(legislation_question.process, legislation_question)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ describe "Commenting polls" do
|
|||||||
create(:comment, commentable: poll)
|
create(:comment, commentable: poll)
|
||||||
visit poll_path(poll)
|
visit poll_path(poll)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ describe "Commenting proposals" do
|
|||||||
create(:comment, commentable: proposal)
|
create(:comment, commentable: proposal)
|
||||||
visit proposal_path(proposal)
|
visit proposal_path(proposal)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ describe "Commenting topics from proposals" do
|
|||||||
|
|
||||||
visit community_topic_path(community, topic)
|
visit community_topic_path(community, topic)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
@@ -747,7 +747,7 @@ describe "Commenting topics from budget investments" do
|
|||||||
|
|
||||||
visit community_topic_path(community, topic)
|
visit community_topic_path(community, topic)
|
||||||
|
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment"
|
expect(page).to have_content "You must sign in or sign up to leave a comment"
|
||||||
within("#comments") do
|
within("#comments") do
|
||||||
expect(page).not_to have_content "Write a comment"
|
expect(page).not_to have_content "Write a comment"
|
||||||
expect(page).not_to have_content "Reply"
|
expect(page).not_to have_content "Reply"
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ describe "Legislation Draft Versions" do
|
|||||||
page.find(:css, ".legislation-annotatable").double_click
|
page.find(:css, ".legislation-annotatable").double_click
|
||||||
page.find(:css, ".annotator-adder button").click
|
page.find(:css, ".annotator-adder button").click
|
||||||
expect(page).not_to have_css("#legislation_annotation_text")
|
expect(page).not_to have_css("#legislation_annotation_text")
|
||||||
expect(page).to have_content "You must Sign in or Sign up to leave a comment."
|
expect(page).to have_content "You must sign in or sign up to leave a comment."
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "Create" do
|
scenario "Create" do
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ describe "Polls" do
|
|||||||
|
|
||||||
visit poll_path(poll)
|
visit poll_path(poll)
|
||||||
|
|
||||||
expect(page).to have_content("You must Sign in or Sign up to participate")
|
expect(page).to have_content("You must sign in or sign up to participate")
|
||||||
expect(page).to have_link("Yes", href: new_user_session_path)
|
expect(page).to have_link("Yes", href: new_user_session_path)
|
||||||
expect(page).to have_link("No", href: new_user_session_path)
|
expect(page).to have_link("No", href: new_user_session_path)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
module Votes
|
module Votes
|
||||||
def expect_message_you_need_to_sign_in
|
def expect_message_you_need_to_sign_in
|
||||||
expect(page).to have_content "You must Sign in or Sign up to continue"
|
expect(page).to have_content "You must sign in or sign up to continue"
|
||||||
expect(page).to have_selector(".in-favor", visible: false)
|
expect(page).to have_selector(".in-favor", visible: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
def expect_message_you_need_to_sign_in_to_vote_comments
|
def expect_message_you_need_to_sign_in_to_vote_comments
|
||||||
expect(page).to have_content "You must Sign in or Sign up to vote"
|
expect(page).to have_content "You must sign in or sign up to vote"
|
||||||
expect(page).to have_selector(".participation-allowed", visible: false)
|
expect(page).to have_selector(".participation-allowed", visible: false)
|
||||||
expect(page).to have_selector(".participation-not-allowed", visible: true)
|
expect(page).to have_selector(".participation-not-allowed", visible: true)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user