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 %>
|
<% scm_class = "Repository::#{choice}".constantize %>
|
||||||
<% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
|
<% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
|
||||||
<% setting = :enabled_scm %>
|
<% setting = :enabled_scm %>
|
||||||
|
<% enabled = Setting.send(setting).include?(value) %>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="scm_name">
|
<td class="scm_name">
|
||||||
<%=
|
<%=
|
||||||
check_box_tag(
|
check_box_tag(
|
||||||
"settings[#{setting}][]",
|
"settings[#{setting}][]",
|
||||||
value,
|
value,
|
||||||
Setting.send(setting).include?(value))
|
enabled)
|
||||||
%>
|
%>
|
||||||
<%= text.to_s %>
|
<%= text.to_s %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
<% if enabled %>
|
||||||
<%=
|
<%=
|
||||||
image_tag(
|
image_tag(
|
||||||
(scm_class.scm_available ? 'true.png' : 'exclamation.png'),
|
(scm_class.scm_available ? 'true.png' : 'exclamation.png'),
|
||||||
@ -30,9 +32,10 @@
|
|||||||
)
|
)
|
||||||
%>
|
%>
|
||||||
<%= scm_class.scm_command %>
|
<%= scm_class.scm_command %>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= scm_class.scm_version_string %>
|
<%= scm_class.scm_version_string if enabled %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user