Merge pull request #3407 from consul/check-ballot

Update texts on check my ballot links
This commit is contained in:
Alberto
2019-03-28 19:20:15 +01:00
committed by GitHub
7 changed files with 37 additions and 16 deletions

View File

@@ -1167,6 +1167,11 @@
text-decoration: none;
}
.confirmed {
font-size: rem-calc(24);
font-weight: bold;
}
.info {
background: #6a2a72;

View File

@@ -9,11 +9,10 @@
<%= t("budgets.ballots.show.voted_html",
count: @ballot.investments.count) %>
</h2>
<p class="confirmed">
<%= t("budgets.ballots.show.voted_info_html") %>
<p>
<small>
<%= t("budgets.ballots.show.voted_info_html") %>
</small>
</p>
<p><%= t("budgets.ballots.show.voted_info_2") %></p>
</div>
</div>
</div>

View File

@@ -71,4 +71,8 @@
<% end %>
<% end %>
</ul>
<%= link_to t("budgets.investments.header.check_ballot"),
budget_ballot_path(@budget),
class: "button hollow expanded" %>
<% end %>

View File

@@ -10,7 +10,8 @@ en:
voted_html:
one: "You have voted <span>one</span> investment."
other: "You have voted <span>%{count}</span> investments."
voted_info_html: "You can change your vote at any time until the close of this phase.<br> No need to spend all the money available."
voted_info_html: "Your ballot is confirmed!"
voted_info_2: "But you can change your vote at any time until this phase is closed."
zero: You have not voted any investment project.
reasons_for_not_balloting:
not_logged_in: You must %{signin} or %{signup} to continue.
@@ -90,7 +91,7 @@ en:
voted_info_link: change your vote
different_heading_assigned_html: "You have active votes in another heading: %{heading_link}"
change_ballot: "If your change your mind you can remove your votes in %{check_ballot} and start again."
check_ballot_link: "check my ballot"
check_ballot_link: "check and confirm my ballot"
zero: You have not voted any investment project in this group.
verified_only: "To create a new budget investment %{verify}."
verify_account: "verify your account"
@@ -142,10 +143,10 @@ en:
zero: No supports
give_support: Support
header:
check_ballot: Check my ballot
check_ballot: Check and confirm my ballot
different_heading_assigned_html: "You have active votes in another heading: %{heading_link}"
change_ballot: "If your change your mind you can remove your votes in %{check_ballot} and start again."
check_ballot_link: "check my ballot"
check_ballot_link: "check and confirm my ballot"
price: "This heading has a budget of"
progress_bar:
assigned: "You have assigned: "

View File

@@ -10,7 +10,8 @@ es:
voted_html:
one: "Has votado <span>un</span> proyecto."
other: "Has votado <span>%{count}</span> proyectos."
voted_info_html: "Puedes cambiar tus votos en cualquier momento hasta el cierre de esta fase.<br> No hace falta que gastes todo el dinero disponible."
voted_info_html: "¡Tus votos están confirmados!"
voted_info_2: "Pero puedes cambiarlos en cualquier momento hasta el cierre de esta fase."
zero: Todavía no has votado ningún proyecto de gasto.
reasons_for_not_balloting:
not_logged_in: Necesitas %{signin} o %{signup} para continuar.
@@ -90,7 +91,7 @@ es:
voted_info_link: cambiar tus votos
different_heading_assigned_html: "Ya apoyaste proyectos de otra sección del presupuesto: %{heading_link}"
change_ballot: "Si cambias de opinión puedes borrar tus votos en %{check_ballot} y volver a empezar."
check_ballot_link: "revisar mis votos"
check_ballot_link: "revisar y confirmar mis votos"
zero: Todavía no has votado ningún proyecto de gasto en este ámbito del presupuesto.
verified_only: "Para crear un nuevo proyecto de gasto %{verify}."
verify_account: "verifica tu cuenta"
@@ -142,10 +143,10 @@ es:
other: "%{count} apoyos"
give_support: Apoyar
header:
check_ballot: Revisar mis votos
check_ballot: Revisar y confirmar mis votos
different_heading_assigned_html: "Ya apoyaste proyectos de otra sección del presupuesto: %{heading_link}"
change_ballot: "Si cambias de opinión puedes borrar tus votos en %{check_ballot} y volver a empezar."
check_ballot_link: "revisar mis votos"
check_ballot_link: "revisar y confirmar mis votos"
price: "Esta partida tiene un presupuesto de"
progress_bar:
assigned: "Has asignado: "

View File

@@ -117,6 +117,7 @@ feature "Ballots" do
within("#sidebar") do
expect(page).to have_content investment1.title
expect(page).to have_content "€10,000"
expect(page).to have_link("Check and confirm my ballot")
end
add_to_ballot(investment2)
@@ -127,6 +128,7 @@ feature "Ballots" do
within("#sidebar") do
expect(page).to have_content investment2.title
expect(page).to have_content "€20,000"
expect(page).to have_link("Check and confirm my ballot")
end
end
@@ -146,6 +148,7 @@ feature "Ballots" do
within("#sidebar") do
expect(page).to have_content investment.title
expect(page).to have_content "€10,000"
expect(page).to have_link("Check and confirm my ballot")
end
within("#budget_investment_#{investment.id}") do
@@ -158,6 +161,7 @@ feature "Ballots" do
within("#sidebar") do
expect(page).not_to have_content investment.title
expect(page).not_to have_content "€10,000"
expect(page).to have_link("Check and confirm my ballot")
end
end
@@ -454,7 +458,9 @@ feature "Ballots" do
visit budget_investments_path(budget, heading_id: new_york.id)
add_to_ballot(investment)
click_link "Check my ballot"
within(".budget-heading") do
click_link "Check and confirm my ballot"
end
expect(page).to have_content("You have voted one investment")

View File

@@ -930,10 +930,12 @@ feature "Budget Investments" do
visit budget_investments_path(budget, heading_id: heading.id)
expect(page).not_to have_link("Check my ballot")
expect(page).not_to have_link("Check and confirm my ballot")
expect(page).not_to have_css("#progress_bar")
within("#sidebar") do
expect(page).not_to have_content("My ballot")
expect(page).not_to have_link("Check and confirm my ballot")
end
end
@@ -1564,7 +1566,8 @@ feature "Budget Investments" do
visit budget_ballot_path(budget)
expect(page).to have_content "You can change your vote at any time until the close of this phase"
expect(page).to have_content "But you can change your vote at any time "\
"until this phase is closed."
within("#budget_group_#{global_group.id}") do
expect(page).to have_content sp1.title
@@ -1627,10 +1630,12 @@ feature "Budget Investments" do
visit budget_investments_path(budget, heading_id: heading.id)
expect(page).to have_link("Check my ballot")
expect(page).to have_link("Check and confirm my ballot")
expect(page).to have_css("#progress_bar")
within("#sidebar") do
expect(page).to have_content("My ballot")
expect(page).to have_link("Check and confirm my ballot")
end
end