diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-02 22:21:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-02 22:21:18 +0000 |
commit | 655dc18d71af4408e6313a6cad6a9c1ad68e6bc6 (patch) | |
tree | def17ace8970311ea6181ee8b10aa5895c2919be /app/views/settings | |
parent | 040cfa4ad5df2701d7fa17df85f733d8d34348b1 (diff) | |
download | redmine-655dc18d71af4408e6313a6cad6a9c1ad68e6bc6.tar.gz redmine-655dc18d71af4408e6313a6cad6a9c1ad68e6bc6.zip |
Do not show warnings for disabled scm.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r-- | app/views/settings/_repositories.html.erb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/settings/_repositories.html.erb b/app/views/settings/_repositories.html.erb index cfd72f051..595a6afdc 100644 --- a/app/views/settings/_repositories.html.erb +++ b/app/views/settings/_repositories.html.erb @@ -12,17 +12,19 @@ <% scm_class = "Repository::#{choice}".constantize %> <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> <% setting = :enabled_scm %> + <% enabled = Setting.send(setting).include?(value) %> <tr> <td class="scm_name"> <%= check_box_tag( "settings[#{setting}][]", value, - Setting.send(setting).include?(value)) + enabled) %> <%= text.to_s %> </td> <td> + <% if enabled %> <%= image_tag( (scm_class.scm_available ? 'true.png' : 'exclamation.png'), @@ -30,9 +32,10 @@ ) %> <%= scm_class.scm_command %> + <% end %> </td> <td> - <%= scm_class.scm_version_string %> + <%= scm_class.scm_version_string if enabled %> </td> </tr> <% end %> |