diff --git a/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb b/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb index 1d3c460a1c..8be30454a2 100644 --- a/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb +++ b/modules/storages/app/views/storages/project_settings/_toast_no_storage_set_up.html.erb @@ -5,8 +5,12 @@ <%= t(:'storages.instructions.no_storage_set_up') %>
- <%= t(:"storages.instructions.setting_up_additional_storages") %> - <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>. + <% if User.current.admin? %> + <%= t(:"storages.instructions.setting_up_storages") %> + <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>. + <% else %> + <%= t(:"storages.instructions.setting_up_storages_non_admin") %> + <% end %>
- \ No newline at end of file + diff --git a/modules/storages/app/views/storages/project_settings/new.html.erb b/modules/storages/app/views/storages/project_settings/new.html.erb index 1f67552a5f..4e8bf45236 100644 --- a/modules/storages/app/views/storages/project_settings/new.html.erb +++ b/modules/storages/app/views/storages/project_settings/new.html.erb @@ -27,12 +27,14 @@<%= t(:'storages.instructions.all_available_storages_already_added') %>
- <% if User.current.admin? %> -+
+ <% if User.current.admin? %> <%= t(:"storages.instructions.setting_up_additional_storages") %> <%= link_to "#{t(:label_administration)} / #{t(:project_module_storages)}", controller: '/storages/admin/storages', action: :index %>. -
- <% end %> + <% else %> + <%= t(:"storages.instructions.setting_up_additional_storages_non_admin") %> + <% end %> + <% end %> diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml index 7b767606bf..1ba9c95c45 100644 --- a/modules/storages/config/locales/en.yml +++ b/modules/storages/config/locales/en.yml @@ -35,6 +35,9 @@ en: host: "The URL of your storage instance. The URL should not be more than 255 characters long." no_storage_set_up: "There are no file storages set up, yet." setting_up_additional_storages: "For setting up additional file storages, please visit" + setting_up_additional_storages_non_admin: "Administrators can set up additional file storages in Administration / File Storages." + setting_up_storages: "For setting up file storages, please visit" + setting_up_storages_non_admin: "Administrators can set up file storages in Administration / File Storages." all_available_storages_already_added: "All available storages are already added to the project." delete_warning: storage: > @@ -52,7 +55,7 @@ en: label_new_storage: "New storage" label_storage: "Storage" label_storages: "Storages" - no_results: "No storages setup, yet." + no_results: "No storages set up, yet." provider_types: label: "Provider type" nextcloud: "Nextcloud"