From 9557f4ce7ce6a1f08452b3b663b447e9f39751db Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 29 May 2011 10:54:45 +0000 Subject: 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 --- app/views/settings/_repositories.rhtml | 50 ++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) (limited to 'app') 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 %> +
+<%= l(:setting_enabled_scm) %> + + + + + + + + + <% Redmine::Scm::Base.all.collect do |choice| %> + <% scm_class = "Repository::#{choice}".constantize %> + <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> + <% setting = :enabled_scm %> + + + + + + + + <% end %> +
<%= l(:text_scm_command) %><%= l(:text_scm_command_version) %>
+ <%= + check_box_tag( + "settings[#{setting}][]", + value, + Setting.send(setting).include?(value)) + %> + + <%= text.to_s %> + + <%= + image_tag( + (scm_class.scm_available ? 'true.png' : 'exclamation.png'), + :style => "vertical-align:bottom;" + ) + %> + + <%= scm_class.scm_command %> + + <%= scm_class.scm_version_string %> +
+

+<%= l(:text_scm_config) %> +

+
+

<%= setting_check_box :autofetch_changesets %>

@@ -16,8 +64,6 @@ "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %>

-

<%= setting_multiselect(:enabled_scm, Redmine::Scm::Base.all) %>

-

<%= setting_text_field :repositories_encodings, :size => 60 %>
<%= l(:text_comma_separated) %>

-- cgit v1.2.3