replace tabs to spaces and fix indents at app/views/settings/_repositories.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1f4e3af192
commit
d78d83f553
@ -13,29 +13,29 @@
|
|||||||
<% 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) %>
|
<% enabled = Setting.send(setting).include?(value) %>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="scm_name">
|
<td class="scm_name">
|
||||||
<label>
|
<label>
|
||||||
<%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %>
|
<%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %>
|
||||||
<%= text.to_s %>
|
<%= text.to_s %>
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<% if enabled %>
|
<% if enabled %>
|
||||||
<%=
|
<%=
|
||||||
image_tag(
|
image_tag(
|
||||||
(scm_class.scm_available ? 'true.png' : 'exclamation.png'),
|
(scm_class.scm_available ? 'true.png' : 'exclamation.png'),
|
||||||
:style => "vertical-align:bottom;"
|
:style => "vertical-align:bottom;"
|
||||||
)
|
)
|
||||||
%>
|
%>
|
||||||
<%= scm_class.scm_command %>
|
<%= scm_class.scm_command %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= scm_class.scm_version_string if enabled %>
|
<%= scm_class.scm_version_string if enabled %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
<p><em class="info"><%= l(:text_scm_config) %></em></p>
|
<p><em class="info"><%= l(:text_scm_config) %></em></p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user