Do not show warnings for disabled scm.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8031 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
040cfa4ad5
commit
655dc18d71
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue