diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-29 10:54:45 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-29 10:54:45 +0000 |
commit | 9557f4ce7ce6a1f08452b3b663b447e9f39751db (patch) | |
tree | bbfb7a45c8572657c678e8c5981e59b22373b107 /app | |
parent | 0cd66cac3ebf704fcb090e884e00f117c9856716 (diff) | |
download | redmine-9557f4ce7ce6a1f08452b3b663b447e9f39751db.tar.gz redmine-9557f4ce7ce6a1f08452b3b663b447e9f39751db.zip |
scm: show scm commands and versions on administration panel (#4273).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5952 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/settings/_repositories.rhtml | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/app/views/settings/_repositories.rhtml b/app/views/settings/_repositories.rhtml index 97af65cd9..4406d2c2a 100644 --- a/app/views/settings/_repositories.rhtml +++ b/app/views/settings/_repositories.rhtml @@ -1,5 +1,53 @@ <% form_tag({:action => 'edit', :tab => 'repositories'}) do %> +<fieldset class="box tabular settings enabled_scm"> +<legend><%= l(:setting_enabled_scm) %></legend> +<table> + <tr> + <th></th> + <th></th> + <th></th> + <th><%= l(:text_scm_command) %></th> + <th><%= l(:text_scm_command_version) %></th> + </tr> + <% Redmine::Scm::Base.all.collect do |choice| %> + <% scm_class = "Repository::#{choice}".constantize %> + <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> + <% setting = :enabled_scm %> + <tr> + <td> + <%= + check_box_tag( + "settings[#{setting}][]", + value, + Setting.send(setting).include?(value)) + %> + </td> + <td class="scm_name"> + <%= text.to_s %> + </td> + <td> + <%= + image_tag( + (scm_class.scm_available ? 'true.png' : 'exclamation.png'), + :style => "vertical-align:bottom;" + ) + %> + </td> + <td> + <%= scm_class.scm_command %> + </td> + <td> + <%= scm_class.scm_version_string %> + </td> + </tr> + <% end %> +</table> +<p class="scm_config"> +<%= l(:text_scm_config) %> +</p> +</fieldset> + <div class="box tabular settings"> <p><%= setting_check_box :autofetch_changesets %></p> @@ -16,8 +64,6 @@ "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %> </p> -<p><%= setting_multiselect(:enabled_scm, Redmine::Scm::Base.all) %></p> - <p><%= setting_text_field :repositories_encodings, :size => 60 %><br /> <em><%= l(:text_comma_separated) %></em></p> |