Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[chore] enabled correct localisation of storage provider types

Eric Schubert7eff201c6dcd
diff --git a/modules/storages/app/components/storages/admin/storage_list_component.html.erb b/modules/storages/app/components/storages/admin/storage_list_component.html.erb
index b94af3508fc..4dd4f850b3c 100644
--- a/modules/storages/app/components/storages/admin/storage_list_component.html.erb
+++ b/modules/storages/app/components/storages/admin/storage_list_component.html.erb
@@ -41,7 +41,7 @@
end
grid.with_area(:provider, tag: :div, color: :subtle, mr: 3, hide: :sm, data: { 'test-selector': 'storage-provider' }) do
- render(Primer::Beta::Truncate.new(font_weight: :light)) { storage.short_provider_type.capitalize }
+ render(Primer::Beta::Truncate.new(font_weight: :light)) { I18n.t("storages.provider_types.#{storage.short_provider_type}.name") }
end
grid.with_area(:time, tag: :div, color: :subtle, mr: 3) do
diff --git a/modules/storages/app/components/storages/admin/storage_list_component.sass b/modules/storages/app/components/storages/admin/storage_list_component.sass
index 7f4a5e44e7f..968330dbf93 100644
--- a/modules/storages/app/components/storages/admin/storage_list_component.sass
+++ b/modules/storages/app/components/storages/admin/storage_list_component.sass
@@ -1,7 +1,7 @@
.op-storage-list--header,
.op-storage-list--row
display: grid
- grid-template-columns: 1fr 180px 100px 240px
+ grid-template-columns: 1fr 180px 160px 240px
grid-template-areas: "name user provider time" "host user provider time"
@media screen and (max-width: $breakpoint-md)