Review my votes page

This commit is contained in:
rgarcia
2016-09-09 18:49:37 +02:00
parent 85d70a2cc2
commit 22373c3ddd
11 changed files with 130 additions and 135 deletions

View File

@@ -2,15 +2,15 @@ en:
budgets:
ballots:
show:
amount_spent: "pending translation"
city_wide: "pending translation"
districts_link: "pending translation"
remaining_district_html: "pending translation"
social_share: "pending translation"
title: "pending translation"
voted_html: "pending translation"
voted_info_html: "pending translation"
zero: "pending translation"
title: Your ballot
amount_spent: Amount spent
remaining: "You still have <span>%{amount_city}</span> to invest."
remove: Remove vote
voted_html:
one: "You have voted <span>one</span> proposal."
other: "You have voted <span>%{count}</span> proposals."
voted_info_html: "You can change your vote at any time until the close of this phase.<br> No need to invest all the money available."
zero: You have not voted any investment project.
budget:
phase:
on_hold: On hold

View File

@@ -2,15 +2,15 @@ es:
budgets:
ballots:
show:
amount_spent: "pending translation"
city_wide: "pending translation"
districts_link: "pending translation"
remaining_district_html: "pending translation"
social_share: "pending translation"
title: "pending translation"
voted_html: "pending translation"
voted_info_html: "pending translation"
zero: "pending translation"
title: Mis votos
amount_spent: Coste total
remaining: "Te quedan <span>%{amount_city}</span> para invertir"
remove: Quitar voto
voted_html:
one: "Has votado <span>una</span> propuesta."
other: "Has votado <span>%{count}</span> propuestas."
voted_info_html: "Puedes cambiar tus votos en cualquier momento hasta el cierre de esta fase.<br> No hace falta que inviertas todo el dinero disponible."
zero: "Todavía no has votado ninguna propuesta de inversión."
budget:
phase:
on_hold: En pausa

View File

@@ -74,7 +74,7 @@ Rails.application.routes.draw do
resources :investments, controller: "budgets/investments", only: [:index, :new, :create, :show, :destroy] do
member { post :vote }
end
resource :ballot, only: :show do
resource :ballot, only: :show, controller: "budgets/ballots" do
resources :lines, controller: "budgets/ballot/lines", only: [:create, :destroy]
end
end