Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change literal of button when budget is voted #17

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def button_class
end

def button_text
key = if current_workflow.vote_allowed?(budget)
key = if current_workflow.vote_allowed?(budget) && !voted?
progress? ? :progress : :vote
else
:show
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ ca:
if_change_opinion: Si has canviat d'opinió, pots
my_budgets: Els meus pressupostos
progress: Finalitza la votació
show: Veure més
show: Veure projectes
vote: Vota
voted_on: Has votat a %{links}
limit_announcement:
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ en:
if_change_opinion: If you've changed your mind, you can
my_budgets: My budgets
progress: Finish voting
show: Show
show: See projects
vote: Vote
voted_on: You've voted on %{links}
limit_announcement:
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ es:
if_change_opinion: Si has cambiado de opinión, puedes
my_budgets: Mis presupuestos
progress: Finaliza la votación
show: Ver más
show: Ver proyectos
vote: Vota
voted_on: Has votado en %{links}
limit_announcement:
Expand Down