##// END OF EJS Templates
Do not show warnings for disabled scm....
Jean-Philippe Lang -
r7911:655dc18d71af
parent child
Show More
@@ -12,17 +12,19
12 12 <% scm_class = "Repository::#{choice}".constantize %>
13 13 <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
14 14 <% setting = :enabled_scm %>
15 <% enabled = Setting.send(setting).include?(value) %>
15 16 <tr>
16 17 <td class="scm_name">
17 18 <%=
18 19 check_box_tag(
19 20 "settings[#{setting}][]",
20 21 value,
21 Setting.send(setting).include?(value))
22 enabled)
22 23 %>
23 24 <%= text.to_s %>
24 25 </td>
25 26 <td>
27 <% if enabled %>
26 28 <%=
27 29 image_tag(
28 30 (scm_class.scm_available ? 'true.png' : 'exclamation.png'),
@@ -30,9 +32,10
30 32 )
31 33 %>
32 34 <%= scm_class.scm_command %>
35 <% end %>
33 36 </td>
34 37 <td>
35 <%= scm_class.scm_version_string %>
38 <%= scm_class.scm_version_string if enabled %>
36 39 </td>
37 40 </tr>
38 41 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now