Add visible_to_valuators and author username to admin investments CSV
Backport based on 012e4be by María Checa from AyuntamientoMadrid/consul fork
This commit is contained in:
@@ -25,7 +25,9 @@ class Budget::Investment::Exporter
|
||||
I18n.t("admin.budget_investments.index.list.geozone"),
|
||||
I18n.t("admin.budget_investments.index.list.feasibility"),
|
||||
I18n.t("admin.budget_investments.index.list.valuation_finished"),
|
||||
I18n.t("admin.budget_investments.index.list.selected")
|
||||
I18n.t("admin.budget_investments.index.list.selected"),
|
||||
I18n.t("admin.budget_investments.index.list.visible_to_valuators"),
|
||||
I18n.t("admin.budget_investments.index.list.author_username")
|
||||
]
|
||||
end
|
||||
|
||||
@@ -40,7 +42,9 @@ class Budget::Investment::Exporter
|
||||
investment.heading.name,
|
||||
price(investment),
|
||||
investment.valuation_finished? ? I18n.t('shared.yes') : I18n.t('shared.no'),
|
||||
investment.selected? ? I18n.t('shared.yes') : I18n.t('shared.no')
|
||||
investment.selected? ? I18n.t('shared.yes') : I18n.t('shared.no'),
|
||||
investment.visible_to_valuators? ? I18n.t('shared.yes') : I18n.t('shared.no'),
|
||||
investment.author.username
|
||||
]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user