Skip to content

Commit

Permalink
Add the project note at the sidebar of each project show view
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Feb 9, 2024
1 parent e57a625 commit 0fd32e7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
10 changes: 8 additions & 2 deletions app/views/decidim/budgets/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,14 @@ edit_link(
</div>

<div class="columns small-12 medium-4">
<div class="resource__aside resource__actions">
<%= render partial: "project_actions", locals: { project: project } %>
<div class="resource__aside">
<div class="resource__actions">
<%= render partial: "project_actions", locals: { project: project } %>
</div>

<div class="resource__note">
<%= t("decidim.budgets.projects.shared.project_note") %>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/budgets/votes/_projects_list.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</div>
<div class="details-list__item">
<br><br>
<%= t(".project_note") %>
<%= t("decidim.budgets.projects.shared.project_note") %>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ en:
one: There is %{count} proposal in your vote
other: There are %{count} proposals in your vote
show_orders: Show vote
shared:
project_note: Proposals may be refined by the city after the vote, for example in terms of location or method of implementation.
show:
close: Close
start_voting: Start voting
Expand Down Expand Up @@ -416,7 +418,6 @@ en:
id: No.
title: Title
vote: Vote
project_note: Proposals may be refined by the city after the vote, for example in terms of location or method of implementation.
show:
privacy_accept: I accept these terms
privacy_reject: Cancel and log out
Expand Down
3 changes: 2 additions & 1 deletion config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ fi:
one: Äänessäsi on %{count} ehdotus
other: Äänessäsi on %{count} ehdotusta
show_orders: Näytä ääni
shared:
project_note: Ehdotuksia saatetaan tarkentaa äänestyksen jälkeen kaupungin toimesta esimerkiksi sijainnin tai toteutustavan osalta.
show:
close: Sulje
start_voting: Aloita äänestys
Expand Down Expand Up @@ -417,7 +419,6 @@ fi:
id: Nro
title: Otsikko
vote: Äänestä
project_note: Ehdotuksia saatetaan tarkentaa äänestyksen jälkeen kaupungin toimesta esimerkiksi sijainnin tai toteutustavan osalta.
show:
privacy_accept: Hyväksyn nämä ehdot
privacy_reject: Peruuta ja kirjaudu ulos
Expand Down
3 changes: 2 additions & 1 deletion config/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ sv:
one: Det finns %{count} förslag i din röst
other: Det finns %{count} förslag i din röst
show_orders: Visa röst
shared:
project_note: Förslag kan förfinas av staden efter omröstningen, till exempel när det gäller lokalisering eller genomförandemetod.
show:
close: Stänga
start_voting: Gå till omröstning
Expand Down Expand Up @@ -421,7 +423,6 @@ sv:
id: Nr
title: Titel
vote: Rösta
project_note: Förslag kan förfinas av staden efter omröstningen, till exempel när det gäller lokalisering eller genomförandemetod.
show:
privacy_accept: Jag accepterar dessa villkor
privacy_reject: Avbryta och logga ut
Expand Down

0 comments on commit 0fd32e7

Please sign in to comment.