@@ -13,29 +13,29 | |||||
13 | <% scm_class = "Repository::#{choice}".constantize %> |
|
13 | <% scm_class = "Repository::#{choice}".constantize %> | |
14 | <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> |
|
14 | <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %> | |
15 | <% setting = :enabled_scm %> |
|
15 | <% setting = :enabled_scm %> | |
16 |
|
|
16 | <% enabled = Setting.send(setting).include?(value) %> | |
17 | <tr> |
|
17 | <tr> | |
18 | <td class="scm_name"> |
|
18 | <td class="scm_name"> | |
19 | <label> |
|
19 | <label> | |
20 | <%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %> |
|
20 | <%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %> | |
21 | <%= text.to_s %> |
|
21 | <%= text.to_s %> | |
22 | </label> |
|
22 | </label> | |
23 | </td> |
|
23 | </td> | |
24 | <td> |
|
24 | <td> | |
25 |
|
|
25 | <% if enabled %> | |
26 | <%= |
|
26 | <%= | |
27 | image_tag( |
|
27 | image_tag( | |
28 | (scm_class.scm_available ? 'true.png' : 'exclamation.png'), |
|
28 | (scm_class.scm_available ? 'true.png' : 'exclamation.png'), | |
29 | :style => "vertical-align:bottom;" |
|
29 | :style => "vertical-align:bottom;" | |
30 | ) |
|
30 | ) | |
31 | %> |
|
31 | %> | |
32 | <%= scm_class.scm_command %> |
|
32 | <%= scm_class.scm_command %> | |
33 | <% end %> |
|
33 | <% end %> | |
34 |
|
|
34 | </td> | |
35 |
|
|
35 | <td> | |
36 |
|
|
36 | <%= scm_class.scm_version_string if enabled %> | |
37 |
|
|
37 | </td> | |
38 |
|
|
38 | </tr> | |
39 | <% end %> |
|
39 | <% end %> | |
40 | </table> |
|
40 | </table> | |
41 | <p><em class="info"><%= l(:text_scm_config) %></em></p> |
|
41 | <p><em class="info"><%= l(:text_scm_config) %></em></p> |
General Comments 0
You need to be logged in to leave comments.
Login now