Make milestones view reusable
This commit is contained in:
@@ -23,5 +23,5 @@
|
|||||||
display_comments_count: false } %>
|
display_comments_count: false } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render "budgets/investments/milestones" %>
|
<%= render "milestones/milestones", milestoneable: @investment %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<% if milestone.publication_date.present? %>
|
<% if milestone.publication_date.present? %>
|
||||||
<span class="milestone-date">
|
<span class="milestone-date">
|
||||||
<strong>
|
<strong>
|
||||||
<%= t("budgets.investments.show.milestone_publication_date",
|
<%= t("milestones.show.publication_date",
|
||||||
publication_date: l(milestone.publication_date.to_date)) %>
|
publication_date: l(milestone.publication_date.to_date)) %>
|
||||||
</strong>
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<% if milestone.status.present? %>
|
<% if milestone.status.present? %>
|
||||||
<p>
|
<p>
|
||||||
<strong>
|
<strong>
|
||||||
<%= t("budgets.investments.show.milestone_status_changed") %>
|
<%= t("milestones.show.status_changed") %>
|
||||||
</strong>
|
</strong>
|
||||||
<br>
|
<br>
|
||||||
<span class="milestone-status">
|
<span class="milestone-status">
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
<div class="tabs-panel tab-milestones" id="tab-milestones">
|
<div class="tabs-panel tab-milestones" id="tab-milestones">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<% if @investment.milestones.blank? %>
|
<% if milestoneable.milestones.blank? %>
|
||||||
<div class="callout primary text-center">
|
<div class="callout primary text-center">
|
||||||
<%= t('budgets.investments.show.no_milestones') %>
|
<%= t("milestones.index.no_milestones") %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<section class="timeline">
|
<section class="timeline">
|
||||||
<ul class="no-bullet">
|
<ul class="no-bullet">
|
||||||
<% @investment.milestones.order_by_publication_date.each do |milestone| %>
|
<% milestoneable.milestones.order_by_publication_date.each do |milestone| %>
|
||||||
<%= render 'budgets/investments/milestones/milestone', milestone: milestone %>
|
<%= render "milestones/milestone", milestone: milestone %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
@@ -43,6 +43,7 @@ data:
|
|||||||
- config/locales/%{locale}/images.yml
|
- config/locales/%{locale}/images.yml
|
||||||
- config/locales/%{locale}/user_groups.yml
|
- config/locales/%{locale}/user_groups.yml
|
||||||
- config/locales/%{locale}/i18n.yml
|
- config/locales/%{locale}/i18n.yml
|
||||||
|
- config/locales/%{locale}/milestones.yml
|
||||||
|
|
||||||
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
|
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
|
||||||
# `i18n-tasks normalize -p` will force move the keys according to these rules
|
# `i18n-tasks normalize -p` will force move the keys according to these rules
|
||||||
|
|||||||
@@ -110,9 +110,6 @@ ar:
|
|||||||
price: سعر
|
price: سعر
|
||||||
comments_tab: تعليقات
|
comments_tab: تعليقات
|
||||||
milestones_tab: معالم
|
milestones_tab: معالم
|
||||||
no_milestones: لا يوجد معالم محددة
|
|
||||||
milestone_publication_date: "تم نشرها %{publication_date}"
|
|
||||||
milestone_status_changed: تم تغيير حالة الستثمار الى
|
|
||||||
author: كاتب
|
author: كاتب
|
||||||
project_unfeasible_html: 'مشروع الاستثمار هذا <strong> تم تعليمه كغير مجدي</strong> ولن يذهب الى مرحلة الاقتراع.'
|
project_unfeasible_html: 'مشروع الاستثمار هذا <strong> تم تعليمه كغير مجدي</strong> ولن يذهب الى مرحلة الاقتراع.'
|
||||||
project_selected_html: 'مشروع الاستثمار هذا<strong>تم اختياره</strong>لمرحلة الاقتراع.'
|
project_selected_html: 'مشروع الاستثمار هذا<strong>تم اختياره</strong>لمرحلة الاقتراع.'
|
||||||
|
|||||||
7
config/locales/ar/milestones.yml
Normal file
7
config/locales/ar/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
ar:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: لا يوجد معالم محددة
|
||||||
|
show:
|
||||||
|
publication_date: "تم نشرها %{publication_date}"
|
||||||
|
status_changed: تم تغيير حالة الستثمار الى
|
||||||
@@ -83,7 +83,6 @@ ast:
|
|||||||
votes: Votos
|
votes: Votos
|
||||||
price: Costu
|
price: Costu
|
||||||
milestones_tab: Siguimientu
|
milestones_tab: Siguimientu
|
||||||
no_milestones: Nun hai finxos definíos
|
|
||||||
wrong_price_format: Solo pue incluyir calteres numbéricos
|
wrong_price_format: Solo pue incluyir calteres numbéricos
|
||||||
investment:
|
investment:
|
||||||
add: Votar
|
add: Votar
|
||||||
|
|||||||
4
config/locales/ast/milestones.yml
Normal file
4
config/locales/ast/milestones.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
ast:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Nun hai finxos definíos
|
||||||
@@ -118,9 +118,6 @@ de:
|
|||||||
price: Preis
|
price: Preis
|
||||||
comments_tab: Kommentare
|
comments_tab: Kommentare
|
||||||
milestones_tab: Meilensteine
|
milestones_tab: Meilensteine
|
||||||
no_milestones: Keine Meilensteine definiert
|
|
||||||
milestone_publication_date: "Veröffentlicht %{publication_date}"
|
|
||||||
milestone_status_changed: Investitionsstatus geändert zu
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Dieses Investitionsprojekt <strong>wurde als nicht durchführbar markiert</strong> und wird nicht in die Abstimmungsphase übergehen.'
|
project_unfeasible_html: 'Dieses Investitionsprojekt <strong>wurde als nicht durchführbar markiert</strong> und wird nicht in die Abstimmungsphase übergehen.'
|
||||||
project_selected_html: 'Dieses Investitionsprojekt wurde für die Abstimmungsphase <strong>ausgewählt</strong>.'
|
project_selected_html: 'Dieses Investitionsprojekt wurde für die Abstimmungsphase <strong>ausgewählt</strong>.'
|
||||||
|
|||||||
7
config/locales/de-DE/milestones.yml
Normal file
7
config/locales/de-DE/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
de:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Keine Meilensteine definiert
|
||||||
|
show:
|
||||||
|
publication_date: "Veröffentlicht %{publication_date}"
|
||||||
|
status_changed: Investitionsstatus geändert zu
|
||||||
@@ -122,9 +122,6 @@ en:
|
|||||||
price: Price
|
price: Price
|
||||||
comments_tab: Comments
|
comments_tab: Comments
|
||||||
milestones_tab: Milestones
|
milestones_tab: Milestones
|
||||||
no_milestones: Don't have defined milestones
|
|
||||||
milestone_publication_date: "Published %{publication_date}"
|
|
||||||
milestone_status_changed: Investment status changed to
|
|
||||||
author: Author
|
author: Author
|
||||||
project_unfeasible_html: 'This investment project <strong>has been marked as not feasible</strong> and will not go to balloting phase.'
|
project_unfeasible_html: 'This investment project <strong>has been marked as not feasible</strong> and will not go to balloting phase.'
|
||||||
project_selected_html: 'This investment project <strong>has been selected</strong> for balloting phase.'
|
project_selected_html: 'This investment project <strong>has been selected</strong> for balloting phase.'
|
||||||
|
|||||||
7
config/locales/en/milestones.yml
Normal file
7
config/locales/en/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
en:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Don't have defined milestones
|
||||||
|
show:
|
||||||
|
publication_date: "Published %{publication_date}"
|
||||||
|
status_changed: Status changed to
|
||||||
@@ -117,9 +117,6 @@ es-AR:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
milestone_status_changed: Estado de inversión cambiado a
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Este proyecto de inversión <strong>ha sido marcado como inviable</strong>y no pasará la fase de votación.'
|
project_unfeasible_html: 'Este proyecto de inversión <strong>ha sido marcado como inviable</strong>y no pasará la fase de votación.'
|
||||||
project_not_selected_html: 'Este proyecto de inversión<strong>no ha sido seleccionado</strong>para la fase de votación.'
|
project_not_selected_html: 'Este proyecto de inversión<strong>no ha sido seleccionado</strong>para la fase de votación.'
|
||||||
|
|||||||
7
config/locales/es-AR/milestones.yml
Normal file
7
config/locales/es-AR/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
es-AR:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
|
status_changed: Estado de inversión cambiado a
|
||||||
@@ -107,8 +107,6 @@ es-BO:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-BO/milestones.yml
Normal file
6
config/locales/es-BO/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-BO:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-CL:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-CL/milestones.yml
Normal file
6
config/locales/es-CL/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-CL:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-CO:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-CO/milestones.yml
Normal file
6
config/locales/es-CO/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-CO:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-CR:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-CR/milestones.yml
Normal file
6
config/locales/es-CR/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-CR:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-DO:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-DO/milestones.yml
Normal file
6
config/locales/es-DO/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-DO:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-EC:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-EC/milestones.yml
Normal file
6
config/locales/es-EC/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-EC:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-GT:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-GT/milestones.yml
Normal file
6
config/locales/es-GT/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-GT:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-HN:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-HN/milestones.yml
Normal file
6
config/locales/es-HN/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-HN:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-MX:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-MX/milestones.yml
Normal file
6
config/locales/es-MX/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-MX:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-NI:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-NI/milestones.yml
Normal file
6
config/locales/es-NI/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-NI:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-PA:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-PA/milestones.yml
Normal file
6
config/locales/es-PA/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-PA:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-PE:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-PE/milestones.yml
Normal file
6
config/locales/es-PE/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-PE:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-PR:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-PR/milestones.yml
Normal file
6
config/locales/es-PR/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-PR:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-PY:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-PY/milestones.yml
Normal file
6
config/locales/es-PY/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-PY:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-SV:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-SV/milestones.yml
Normal file
6
config/locales/es-SV/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-SV:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -107,8 +107,6 @@ es-UY:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-UY/milestones.yml
Normal file
6
config/locales/es-UY/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-UY:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -110,8 +110,6 @@ es-VE:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
author: Autor
|
author: Autor
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/es-VE/milestones.yml
Normal file
6
config/locales/es-VE/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
es-VE:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
@@ -122,9 +122,6 @@ es:
|
|||||||
price: Coste
|
price: Coste
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
|
||||||
milestone_publication_date: "Publicado el %{publication_date}"
|
|
||||||
milestone_status_changed: El proyecto ha cambiado al estado
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Este proyecto de gasto <strong>ha sido marcado como inviable</strong> y no pasará a la fase de votación.'
|
project_unfeasible_html: 'Este proyecto de gasto <strong>ha sido marcado como inviable</strong> y no pasará a la fase de votación.'
|
||||||
project_selected_html: 'Este proyecto de gasto <strong>ha sido seleccionado</strong> para la fase de votación.'
|
project_selected_html: 'Este proyecto de gasto <strong>ha sido seleccionado</strong> para la fase de votación.'
|
||||||
|
|||||||
7
config/locales/es/milestones.yml
Normal file
7
config/locales/es/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
es:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hay hitos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado el %{publication_date}"
|
||||||
|
status_changed: El proyecto ha cambiado al estado
|
||||||
@@ -114,8 +114,6 @@ fa:
|
|||||||
price: قیمت
|
price: قیمت
|
||||||
comments_tab: توضیحات
|
comments_tab: توضیحات
|
||||||
milestones_tab: نقطه عطف
|
milestones_tab: نقطه عطف
|
||||||
no_milestones: نقاط قوت را مشخص نکرده اید
|
|
||||||
milestone_publication_date: "منتشر شده\n%{publication_date}"
|
|
||||||
author: نویسنده
|
author: نویسنده
|
||||||
project_unfeasible_html: 'این پروژه سرمایه گذاری <strong> به عنوان غیرقابل توصیف مشخص شده است </ strong> و به مرحله رای گیری نرسیده است'
|
project_unfeasible_html: 'این پروژه سرمایه گذاری <strong> به عنوان غیرقابل توصیف مشخص شده است </ strong> و به مرحله رای گیری نرسیده است'
|
||||||
project_not_selected_html: 'این پروژه سرمایه گذاری <strong> انتخاب نشده است </ strong> برای مرحله رای گیری .'
|
project_not_selected_html: 'این پروژه سرمایه گذاری <strong> انتخاب نشده است </ strong> برای مرحله رای گیری .'
|
||||||
|
|||||||
6
config/locales/fa-IR/milestones.yml
Normal file
6
config/locales/fa-IR/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
fa:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: نقاط قوت را مشخص نکرده اید
|
||||||
|
show:
|
||||||
|
publication_date: "منتشر شده\n%{publication_date}"
|
||||||
@@ -118,9 +118,6 @@ fr:
|
|||||||
price: Coût
|
price: Coût
|
||||||
comments_tab: Commentaires
|
comments_tab: Commentaires
|
||||||
milestones_tab: Jalons
|
milestones_tab: Jalons
|
||||||
no_milestones: Aucun jalon défini
|
|
||||||
milestone_publication_date: "Publié le %{publication_date}"
|
|
||||||
milestone_status_changed: Statut d'investissement changé à
|
|
||||||
author: Auteur
|
author: Auteur
|
||||||
project_unfeasible_html: 'Ce projet d''investissement <strong>a été marqué comme irréalisable</strong> et n''ira pas en phase de vote.'
|
project_unfeasible_html: 'Ce projet d''investissement <strong>a été marqué comme irréalisable</strong> et n''ira pas en phase de vote.'
|
||||||
project_selected_html: 'Ce projet d''investissement <strong>n’a pas été sélectionné</strong> pour la phase de vote.'
|
project_selected_html: 'Ce projet d''investissement <strong>n’a pas été sélectionné</strong> pour la phase de vote.'
|
||||||
|
|||||||
7
config/locales/fr/milestones.yml
Normal file
7
config/locales/fr/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fr:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Aucun jalon défini
|
||||||
|
show:
|
||||||
|
publication_date: "Publié le %{publication_date}"
|
||||||
|
status_changed: Statut d'investissement changé à
|
||||||
@@ -118,9 +118,6 @@ gl:
|
|||||||
price: Custo
|
price: Custo
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimento
|
milestones_tab: Seguimento
|
||||||
no_milestones: Non hai datos definidos
|
|
||||||
milestone_publication_date: "Publicouse o %{publication_date}"
|
|
||||||
milestone_status_changed: O investimento mudou de estado a
|
|
||||||
author: Autoría
|
author: Autoría
|
||||||
project_unfeasible_html: 'O proxecto de investimento <strong>foi marcado como inviable</strong> e non chegará á fase de votación.'
|
project_unfeasible_html: 'O proxecto de investimento <strong>foi marcado como inviable</strong> e non chegará á fase de votación.'
|
||||||
project_selected_html: 'Este proxecto de investimento <strong>foi seleccionado</strong> para a fase de votación.'
|
project_selected_html: 'Este proxecto de investimento <strong>foi seleccionado</strong> para a fase de votación.'
|
||||||
|
|||||||
7
config/locales/gl/milestones.yml
Normal file
7
config/locales/gl/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
gl:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Non hai datos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicouse o %{publication_date}"
|
||||||
|
status_changed: O investimento mudou de estado a
|
||||||
@@ -105,8 +105,6 @@ id:
|
|||||||
price: Harga
|
price: Harga
|
||||||
comments_tab: Komentar
|
comments_tab: Komentar
|
||||||
milestones_tab: Tonggak
|
milestones_tab: Tonggak
|
||||||
no_milestones: Jangan telah ditetapkan tonggak
|
|
||||||
milestone_publication_date: "Diterbitkan %{publication_date}"
|
|
||||||
author: Penulis
|
author: Penulis
|
||||||
wrong_price_format: Hanya angka bilangan bulat
|
wrong_price_format: Hanya angka bilangan bulat
|
||||||
investment:
|
investment:
|
||||||
|
|||||||
6
config/locales/id-ID/milestones.yml
Normal file
6
config/locales/id-ID/milestones.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
id:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Jangan telah ditetapkan tonggak
|
||||||
|
show:
|
||||||
|
publication_date: "Diterbitkan %{publication_date}"
|
||||||
@@ -118,9 +118,6 @@ it:
|
|||||||
price: Costi
|
price: Costi
|
||||||
comments_tab: Commenti
|
comments_tab: Commenti
|
||||||
milestones_tab: Traguardi
|
milestones_tab: Traguardi
|
||||||
no_milestones: Non ci sono traguardi definiti
|
|
||||||
milestone_publication_date: "Pubblicato il %{publication_date}"
|
|
||||||
milestone_status_changed: Status dell’investimento cambiato in
|
|
||||||
author: Autore
|
author: Autore
|
||||||
project_unfeasible_html: 'Questo progetto di investimento <strong>è stato contrassegnato come irrealizzabile</strong> e non accederà alla fase di voto finale.'
|
project_unfeasible_html: 'Questo progetto di investimento <strong>è stato contrassegnato come irrealizzabile</strong> e non accederà alla fase di voto finale.'
|
||||||
project_selected_html: 'Il progetto di investimento <strong>è stato selezionato</strong> per la fase di voto.'
|
project_selected_html: 'Il progetto di investimento <strong>è stato selezionato</strong> per la fase di voto.'
|
||||||
|
|||||||
7
config/locales/it/milestones.yml
Normal file
7
config/locales/it/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
it:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Non ci sono traguardi definiti
|
||||||
|
show:
|
||||||
|
publication_date: "Pubblicato il %{publication_date}"
|
||||||
|
status_changed: Status dell’investimento cambiato in
|
||||||
@@ -118,9 +118,6 @@ nl:
|
|||||||
price: Bedrag
|
price: Bedrag
|
||||||
comments_tab: Reacties
|
comments_tab: Reacties
|
||||||
milestones_tab: Mijlpalen
|
milestones_tab: Mijlpalen
|
||||||
no_milestones: Zonder gedefinieerde mijlpalen
|
|
||||||
milestone_publication_date: "Gepubliceerd %{publication_date}"
|
|
||||||
milestone_status_changed: Investeringsstatus gewijzigd in
|
|
||||||
author: Auteur
|
author: Auteur
|
||||||
project_unfeasible_html: 'Dit investeringsproject <strong> is gemarkeerd als niet haalbaar </ strong> en gaat niet naar de beslissingsfase.'
|
project_unfeasible_html: 'Dit investeringsproject <strong> is gemarkeerd als niet haalbaar </ strong> en gaat niet naar de beslissingsfase.'
|
||||||
project_selected_html: 'Dit investeringsproject <strong> is geselecteerd </strong> voor beslissingsfase.'
|
project_selected_html: 'Dit investeringsproject <strong> is geselecteerd </strong> voor beslissingsfase.'
|
||||||
|
|||||||
7
config/locales/nl/milestones.yml
Normal file
7
config/locales/nl/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
nl:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Zonder gedefinieerde mijlpalen
|
||||||
|
show:
|
||||||
|
publication_date: "Gepubliceerd %{publication_date}"
|
||||||
|
status_changed: Investeringsstatus gewijzigd in
|
||||||
@@ -114,9 +114,6 @@ pl:
|
|||||||
price: Koszt
|
price: Koszt
|
||||||
comments_tab: Komentarze
|
comments_tab: Komentarze
|
||||||
milestones_tab: Kamienie milowe
|
milestones_tab: Kamienie milowe
|
||||||
no_milestones: Nie ma zdefiniowanych kamieni milowych
|
|
||||||
milestone_publication_date: "Opublikowane %{publication_date}"
|
|
||||||
milestone_status_changed: Zmieniono stan inwestycji na
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Ten projekt inwestycyjny <strong>został oznaczony jako niewykonalny</strong> i nie przejdzie do fazy głosowania.'
|
project_unfeasible_html: 'Ten projekt inwestycyjny <strong>został oznaczony jako niewykonalny</strong> i nie przejdzie do fazy głosowania.'
|
||||||
project_selected_html: 'Ten projekt inwestycyjny <strong>został wybrany</strong> do fazy głosowania.'
|
project_selected_html: 'Ten projekt inwestycyjny <strong>został wybrany</strong> do fazy głosowania.'
|
||||||
|
|||||||
7
config/locales/pl-PL/milestones.yml
Normal file
7
config/locales/pl-PL/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
pl:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Nie ma zdefiniowanych kamieni milowych
|
||||||
|
show:
|
||||||
|
publication_date: "Opublikowane %{publication_date}"
|
||||||
|
status_changed: Zmieniono stan inwestycji na
|
||||||
@@ -118,9 +118,6 @@ pt-BR:
|
|||||||
price: Preço
|
price: Preço
|
||||||
comments_tab: Comentários
|
comments_tab: Comentários
|
||||||
milestones_tab: Marcos
|
milestones_tab: Marcos
|
||||||
no_milestones: Não possui marcos definidos
|
|
||||||
milestone_publication_date: "Publicado %{publication_date}"
|
|
||||||
milestone_status_changed: Status de investimento mudado para
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Este projeto de investimento <strong>foi marcado como não viável</strong> e não vai à fase de votação.'
|
project_unfeasible_html: 'Este projeto de investimento <strong>foi marcado como não viável</strong> e não vai à fase de votação.'
|
||||||
project_selected_html: 'Este projeto de investimento <strong>está selecionado</strong> para a fase de votação.'
|
project_selected_html: 'Este projeto de investimento <strong>está selecionado</strong> para a fase de votação.'
|
||||||
|
|||||||
7
config/locales/pt-BR/milestones.yml
Normal file
7
config/locales/pt-BR/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
pt-BR:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Não possui marcos definidos
|
||||||
|
show:
|
||||||
|
publication_date: "Publicado %{publication_date}"
|
||||||
|
status_changed: Status de investimento mudado para
|
||||||
@@ -109,9 +109,6 @@ ru:
|
|||||||
price: Цена
|
price: Цена
|
||||||
comments_tab: Комментарии
|
comments_tab: Комментарии
|
||||||
milestones_tab: Основные этапы
|
milestones_tab: Основные этапы
|
||||||
no_milestones: Не имеет определенных основных этапов
|
|
||||||
milestone_publication_date: "Опубликованные %{publication_date}"
|
|
||||||
milestone_status_changed: Инвестиционный статус изменен на
|
|
||||||
author: Автор
|
author: Автор
|
||||||
project_unfeasible_html: 'Этот инвестиционный проект <strong>был отмечен как неосуществимый</strong> и не перейдет к этапу голосования.'
|
project_unfeasible_html: 'Этот инвестиционный проект <strong>был отмечен как неосуществимый</strong> и не перейдет к этапу голосования.'
|
||||||
project_selected_html: 'Этот инвестиционный проект <strong>был выбран</strong> для этапа голосования.'
|
project_selected_html: 'Этот инвестиционный проект <strong>был выбран</strong> для этапа голосования.'
|
||||||
|
|||||||
7
config/locales/ru/milestones.yml
Normal file
7
config/locales/ru/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
ru:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Не имеет определенных основных этапов
|
||||||
|
show:
|
||||||
|
publication_date: "Опубликованные %{publication_date}"
|
||||||
|
status_changed: Инвестиционный статус изменен на
|
||||||
@@ -118,9 +118,6 @@ sq:
|
|||||||
price: Çmim
|
price: Çmim
|
||||||
comments_tab: Komentet
|
comments_tab: Komentet
|
||||||
milestones_tab: Pikëarritje
|
milestones_tab: Pikëarritje
|
||||||
no_milestones: Nuk keni pikëarritje të përcaktuara
|
|
||||||
milestone_publication_date: "Publikuar %{publication_date}"
|
|
||||||
milestone_status_changed: Statusi i investimeve u ndryshua
|
|
||||||
author: Autori
|
author: Autori
|
||||||
project_unfeasible_html: 'Ky projekt investimi <strong> është shënuar si jo e realizueshme </strong> dhe nuk do të shkojë në fazën e votimit.'
|
project_unfeasible_html: 'Ky projekt investimi <strong> është shënuar si jo e realizueshme </strong> dhe nuk do të shkojë në fazën e votimit.'
|
||||||
project_selected_html: 'Ky projekt investimi <strong> është përzgjedhur</strong> për fazën e votimit.'
|
project_selected_html: 'Ky projekt investimi <strong> është përzgjedhur</strong> për fazën e votimit.'
|
||||||
|
|||||||
7
config/locales/sq-AL/milestones.yml
Normal file
7
config/locales/sq-AL/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
sq:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Nuk keni pikëarritje të përcaktuara
|
||||||
|
show:
|
||||||
|
publication_date: "Publikuar %{publication_date}"
|
||||||
|
status_changed: Statusi i investimeve u ndryshua
|
||||||
@@ -118,9 +118,6 @@ sv:
|
|||||||
price: Kostnad
|
price: Kostnad
|
||||||
comments_tab: Kommentarer
|
comments_tab: Kommentarer
|
||||||
milestones_tab: Milstolpar
|
milestones_tab: Milstolpar
|
||||||
no_milestones: Har inga definierade milstolpar
|
|
||||||
milestone_publication_date: "Publicerad %{publication_date}"
|
|
||||||
milestone_status_changed: Förslagets status har ändrats till
|
|
||||||
author: Förslagslämnare
|
author: Förslagslämnare
|
||||||
project_unfeasible_html: 'Det här budgetförslaget <strong>har markerats som ej genomförbart</strong> och kommer inte gå vidare till omröstning.'
|
project_unfeasible_html: 'Det här budgetförslaget <strong>har markerats som ej genomförbart</strong> och kommer inte gå vidare till omröstning.'
|
||||||
project_selected_html: 'Det här budgetförslaget <strong>har gått vidare</strong> till omröstning.'
|
project_selected_html: 'Det här budgetförslaget <strong>har gått vidare</strong> till omröstning.'
|
||||||
|
|||||||
7
config/locales/sv-SE/milestones.yml
Normal file
7
config/locales/sv-SE/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
sv:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: Har inga definierade milstolpar
|
||||||
|
show:
|
||||||
|
publication_date: "Publicerad %{publication_date}"
|
||||||
|
status_changed: Förslagets status har ändrats till
|
||||||
@@ -117,9 +117,6 @@ val:
|
|||||||
price: Cost
|
price: Cost
|
||||||
comments_tab: Comentaris
|
comments_tab: Comentaris
|
||||||
milestones_tab: Seguiments
|
milestones_tab: Seguiments
|
||||||
no_milestones: No hi ha fites definides
|
|
||||||
milestone_publication_date: "Publicat el %{publication_date}"
|
|
||||||
milestone_status_changed: Estat de la proposta canviat a
|
|
||||||
author: Autor
|
author: Autor
|
||||||
project_unfeasible_html: 'Esta proposta <strong>ha sigut marcada com inviable</strong> i no passarà a la fase de votació.'
|
project_unfeasible_html: 'Esta proposta <strong>ha sigut marcada com inviable</strong> i no passarà a la fase de votació.'
|
||||||
project_selected_html: 'Este projecte d''inversió <strong>ha sigut seleccionat</strong> per a la fase de votació.'
|
project_selected_html: 'Este projecte d''inversió <strong>ha sigut seleccionat</strong> per a la fase de votació.'
|
||||||
|
|||||||
7
config/locales/val/milestones.yml
Normal file
7
config/locales/val/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
val:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: No hi ha fites definides
|
||||||
|
show:
|
||||||
|
publication_date: "Publicat el %{publication_date}"
|
||||||
|
status_changed: Estat de la proposta canviat a
|
||||||
@@ -115,9 +115,6 @@ zh-CN:
|
|||||||
price: 价格
|
price: 价格
|
||||||
comments_tab: 评论
|
comments_tab: 评论
|
||||||
milestones_tab: 里程碑
|
milestones_tab: 里程碑
|
||||||
no_milestones: 没有已定义的里程碑
|
|
||||||
milestone_publication_date: "发布于%{publication_date}"
|
|
||||||
milestone_status_changed: 投资状态更改为
|
|
||||||
author: 作者
|
author: 作者
|
||||||
project_unfeasible_html: '此投资项目<strong>已经被标记为不可行</strong>,并将不会进入投票阶段。'
|
project_unfeasible_html: '此投资项目<strong>已经被标记为不可行</strong>,并将不会进入投票阶段。'
|
||||||
project_selected_html: '此投资项目<strong>已经被选择</strong>进入投票阶段。'
|
project_selected_html: '此投资项目<strong>已经被选择</strong>进入投票阶段。'
|
||||||
|
|||||||
7
config/locales/zh-CN/milestones.yml
Normal file
7
config/locales/zh-CN/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
zh-CN:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: 没有已定义的里程碑
|
||||||
|
show:
|
||||||
|
publication_date: "发布于%{publication_date}"
|
||||||
|
status_changed: 投资状态更改为
|
||||||
@@ -115,9 +115,6 @@ zh-TW:
|
|||||||
price: 價格
|
price: 價格
|
||||||
comments_tab: 評論
|
comments_tab: 評論
|
||||||
milestones_tab: 里程碑
|
milestones_tab: 里程碑
|
||||||
no_milestones: 沒有已定義的里程碑
|
|
||||||
milestone_publication_date: "發佈於 %{publication_date}"
|
|
||||||
milestone_status_changed: 投資狀態改為
|
|
||||||
author: 作者
|
author: 作者
|
||||||
project_unfeasible_html: '此投資項目 <strong>已被標記為不可行</strong>,不會進入投票階段。'
|
project_unfeasible_html: '此投資項目 <strong>已被標記為不可行</strong>,不會進入投票階段。'
|
||||||
project_selected_html: '此投資項目 <strong>已被選入</strong>投票階段。'
|
project_selected_html: '此投資項目 <strong>已被選入</strong>投票階段。'
|
||||||
|
|||||||
7
config/locales/zh-TW/milestones.yml
Normal file
7
config/locales/zh-TW/milestones.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
zh-TW:
|
||||||
|
milestones:
|
||||||
|
index:
|
||||||
|
no_milestones: 沒有已定義的里程碑
|
||||||
|
show:
|
||||||
|
publication_date: "發佈於 %{publication_date}"
|
||||||
|
status_changed: 投資狀態改為
|
||||||
@@ -10,6 +10,10 @@ feature 'Budget Investments' do
|
|||||||
let(:group) { create(:budget_group, name: "Health", budget: budget) }
|
let(:group) { create(:budget_group, name: "Health", budget: budget) }
|
||||||
let!(:heading) { create(:budget_heading, name: "More hospitals", price: 666666, group: group) }
|
let!(:heading) { create(:budget_heading, name: "More hospitals", price: 666666, group: group) }
|
||||||
|
|
||||||
|
it_behaves_like "milestoneable",
|
||||||
|
:budget_investment,
|
||||||
|
"budget_investment_path"
|
||||||
|
|
||||||
before do
|
before do
|
||||||
Setting['feature.allow_images'] = true
|
Setting['feature.allow_images'] = true
|
||||||
end
|
end
|
||||||
@@ -1118,59 +1122,6 @@ feature 'Budget Investments' do
|
|||||||
expect(page).not_to have_content("Local government is not competent in this matter")
|
expect(page).not_to have_content("Local government is not competent in this matter")
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "Show milestones", :js do
|
|
||||||
user = create(:user)
|
|
||||||
investment = create(:budget_investment)
|
|
||||||
create(:milestone, milestoneable: investment,
|
|
||||||
description_en: "Last milestone with a link to https://consul.dev",
|
|
||||||
description_es: "Último hito con el link https://consul.dev",
|
|
||||||
publication_date: Date.tomorrow)
|
|
||||||
first_milestone = create(:milestone, milestoneable: investment,
|
|
||||||
description: "First milestone",
|
|
||||||
publication_date: Date.yesterday)
|
|
||||||
image = create(:image, imageable: first_milestone)
|
|
||||||
document = create(:document, documentable: first_milestone)
|
|
||||||
|
|
||||||
login_as(user)
|
|
||||||
visit budget_investment_path(budget_id: investment.budget.id, id: investment.id)
|
|
||||||
|
|
||||||
find("#tab-milestones-label").click
|
|
||||||
|
|
||||||
within("#tab-milestones") do
|
|
||||||
expect(first_milestone.description).to appear_before('Last milestone with a link to https://consul.dev')
|
|
||||||
expect(page).to have_content(Date.tomorrow)
|
|
||||||
expect(page).to have_content(Date.yesterday)
|
|
||||||
expect(page).not_to have_content(Date.current)
|
|
||||||
expect(page.find("#image_#{first_milestone.id}")['alt']).to have_content(image.title)
|
|
||||||
expect(page).to have_link(document.title)
|
|
||||||
expect(page).to have_link("https://consul.dev")
|
|
||||||
expect(page).to have_content(first_milestone.status.name)
|
|
||||||
end
|
|
||||||
|
|
||||||
select('Español', from: 'locale-switcher')
|
|
||||||
|
|
||||||
find("#tab-milestones-label").click
|
|
||||||
|
|
||||||
within("#tab-milestones") do
|
|
||||||
expect(page).to have_content('Último hito con el link https://consul.dev')
|
|
||||||
expect(page).to have_link("https://consul.dev")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
scenario "Show no_milestones text", :js do
|
|
||||||
user = create(:user)
|
|
||||||
investment = create(:budget_investment)
|
|
||||||
|
|
||||||
login_as(user)
|
|
||||||
visit budget_investment_path(budget_id: investment.budget.id, id: investment.id)
|
|
||||||
|
|
||||||
find("#tab-milestones-label").click
|
|
||||||
|
|
||||||
within("#tab-milestones") do
|
|
||||||
expect(page).to have_content("Don't have defined milestones")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
scenario "Only winner investments are show when budget is finished" do
|
scenario "Only winner investments are show when budget is finished" do
|
||||||
3.times { create(:budget_investment, heading: heading) }
|
3.times { create(:budget_investment, heading: heading) }
|
||||||
|
|
||||||
|
|||||||
58
spec/shared/features/milestoneable.rb
Normal file
58
spec/shared/features/milestoneable.rb
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
shared_examples "milestoneable" do |factory_name, path_name|
|
||||||
|
let!(:milestoneable) { create(factory_name) }
|
||||||
|
|
||||||
|
feature "Show milestones" do
|
||||||
|
let(:path) { send(path_name, *resource_hierarchy_for(milestoneable)) }
|
||||||
|
|
||||||
|
scenario "Show milestones", :js do
|
||||||
|
create(:milestone, milestoneable: milestoneable,
|
||||||
|
description_en: "Last milestone with a link to https://consul.dev",
|
||||||
|
description_es: "Último hito con el link https://consul.dev",
|
||||||
|
publication_date: Date.tomorrow)
|
||||||
|
|
||||||
|
first_milestone = create(:milestone, milestoneable: milestoneable,
|
||||||
|
description: "First milestone",
|
||||||
|
publication_date: Date.yesterday)
|
||||||
|
image = create(:image, imageable: first_milestone)
|
||||||
|
document = create(:document, documentable: first_milestone)
|
||||||
|
|
||||||
|
login_as(create(:user))
|
||||||
|
visit path
|
||||||
|
|
||||||
|
find("#tab-milestones-label").click
|
||||||
|
|
||||||
|
within("#tab-milestones") do
|
||||||
|
expect(first_milestone.description).to appear_before('Last milestone with a link to https://consul.dev')
|
||||||
|
expect(page).to have_content(Date.tomorrow)
|
||||||
|
expect(page).to have_content(Date.yesterday)
|
||||||
|
expect(page).not_to have_content(Date.current)
|
||||||
|
expect(page.find("#image_#{first_milestone.id}")['alt']).to have_content(image.title)
|
||||||
|
expect(page).to have_link(document.title)
|
||||||
|
expect(page).to have_link("https://consul.dev")
|
||||||
|
expect(page).to have_content(first_milestone.status.name)
|
||||||
|
end
|
||||||
|
|
||||||
|
select('Español', from: 'locale-switcher')
|
||||||
|
|
||||||
|
find("#tab-milestones-label").click
|
||||||
|
|
||||||
|
within("#tab-milestones") do
|
||||||
|
expect(page).to have_content('Último hito con el link https://consul.dev')
|
||||||
|
expect(page).to have_link("https://consul.dev")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
scenario "Show no_milestones text", :js do
|
||||||
|
create(:budget_investment)
|
||||||
|
login_as(create(:user))
|
||||||
|
|
||||||
|
visit path
|
||||||
|
|
||||||
|
find("#tab-milestones-label").click
|
||||||
|
|
||||||
|
within("#tab-milestones") do
|
||||||
|
expect(page).to have_content("Don't have defined milestones")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user