diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-30 06:35:00 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-30 06:35:00 +0300 |
commit | 4a8a69837a9a14fca39bf089099b581602d983f2 (patch) | |
tree | 79c028de4c65c580a4f5d462a3ac4202dbcd0e72 /app/helpers/application_settings_helper.rb | |
parent | 20b9bb2029972c5f5334d6d684e0d60edb034c5f (diff) |
Add Application Setting to configure default Repository Path for new projects
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index 55313fd8357..6e580c62ccd 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -78,4 +78,12 @@ module ApplicationSettingsHelper end end end + + def repository_storage_options_for_select + options = Gitlab.config.repositories.storages.map do |name, path| + ["#{name} - #{path}", name] + end + + options_for_select(options, @application_setting.repository_storage) + end end |