To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_checkout / app / views / projects / settings / _repository_checkout_protocol.html.erb @ 918:04114f36670d

History | View | Annotate | Download (1.43 KB)

1 16:020926a36823 Chris
<%
2
  index ||= "--INDEX--"
3
  classes ||= ""
4

5
  protocol = Checkout::Protocol.new(protocol) unless protocol.is_a? Checkout::Protocol
6
%>
7
<tr id="<%= "checkout_protocols_#{index}" %>" class="<%= classes %>" <%= 'style="display:none"' if index == '--INDEX--' %>>
8
  <td class="protocol_protocol"><%= text_field_tag "repository[checkout_protocols][#{index}][protocol]", protocol.protocol, :size => 10 %></td>
9
  <td class="protocol_command"><%= text_field_tag "repository[checkout_protocols][#{index}][command]", protocol.command, :size => 15 %></td>
10
  <td class="protocol_fixed_url"><%= text_field_tag "repository[checkout_protocols][#{index}][fixed_url]", protocol.fixed_url, :size => 60 %></td>
11
  <td class="protocol_access"><%= select_tag "repository[checkout_protocols][#{index}][access]", options_for_select([
12
    [l(:label_access_read_write), 'read+write'],
13
    [l(:label_access_read_only), 'read-only'],
14
    [l(:label_access_permission), 'permission']], protocol.access) %></td>
15
  <td class="protocol_append_path"><%= check_box_tag "repository[checkout_protocols][#{index}][append_path]", 1, protocol.append_path? %></td>
16
  <td class="protocol_is_default"><%= check_box_tag "repository[checkout_protocols][#{index}][is_default]", 1, protocol.default? %></td>
17
  <td class="protocol_delete"><%= image_to_function 'delete.png', "var e=$('checkout_protocols_#{index}');var parent=e.up(\"tbody\");e.remove();recalculate_even_odd(parent);return false" %></td>
18
</tr>