##// END OF EJS Templates
replace tabs to spaces and fix indents at app/views/settings/_repositories.html.erb...
Toshi MARUYAMA -
r11395:d78d83f55394
parent child
Show More
@@ -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 <% enabled = Setting.send(setting).include?(value) %>
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 <% if enabled %>
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 </td>
34 </td>
35 <td>
35 <td>
36 <%= scm_class.scm_version_string if enabled %>
36 <%= scm_class.scm_version_string if enabled %>
37 </td>
37 </td>
38 </tr>
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