To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_checkout / app / views / settings / _checkout_scm.erb @ 915:2a68662d5adf
History | View | Annotate | Download (2.68 KB)
| 1 | 16:020926a36823 | Chris | <div>
|
|---|---|---|---|
| 2 | <p><%= setting_check_box "checkout_overwrite_description_#{scm}", :label => :setting_checkout_overwrite_description, :onclick => <<-EOF |
||
| 3 | Effect.toggle($('settings_checkout_description_#{scm}').up("div").up("div"), 'slide', {duration:0.2});
|
||
| 4 | EOF
|
||
| 5 | %></p> |
||
| 6 | |||
| 7 | <div>
|
||
| 8 | <p><%= setting_text_area "checkout_description_#{scm}", :cols => 60, :rows => 5, :class => 'wiki-edit', :label => :field_description %></p> |
||
| 9 | <%= wikitoolbar_for "settings_checkout_description_#{scm}" %>
|
||
| 10 | </div>
|
||
| 11 | |||
| 12 | <% if scm == 'Subversion' %>
|
||
| 13 | <p><%= setting_select "checkout_display_login",[ |
||
| 14 | [l(:label_display_login_username), 'username'],
|
||
| 15 | [l(:label_display_login_password), 'password']
|
||
| 16 | ],
|
||
| 17 | :blank => :label_display_login_none %></p> |
||
| 18 | <% end %>
|
||
| 19 | |||
| 20 | <p><%= setting_check_box "checkout_display_command_#{scm}", :label => :field_checkout_display_command %></p> |
||
| 21 | |||
| 22 | <% javascript_tag do %>
|
||
| 23 | <% repo = "Repository::#{scm}".constantize %>
|
||
| 24 | var subform = new Subform('<%= escape_javascript(render(:partial => "checkout_protocol", :locals => {:protocol => Checkout::Protocol.new({:protocol => repo.scm_name, :append_path => (repo.allow_subtree_checkout? ? '1' : '0'), :command => repo.checkout_default_command}), :scm => scm})) %>',<%= Setting.send("checkout_protocols_#{scm}").length %>,'settings_checkout_protocols_<%= scm %>');
|
||
| 25 | protocolForms.set('<%= scm %>', subform);
|
||
| 26 | <% end %>
|
||
| 27 | <p><label><%=l :label_protocol_plural %></label><%=l :help_checkout_protocols %></p> |
||
| 28 | <table class="list checkout_protocol_table"> |
||
| 29 | <thead><tr> |
||
| 30 | <th class="protocol_protocol" ><%= l(:setting_protocol)%></th> |
||
| 31 | <th class="protocol_command" ><%= l(:setting_checkout_command)%></th> |
||
| 32 | <th class="protocol_regex" ><%= l(:setting_checkout_url_regex) %></th> |
||
| 33 | <th class="protocol_regex_replacement"><%= l(:setting_checkout_url_regex_replacement) %></th> |
||
| 34 | <th class="protocol_access" ><%= l(:label_permissions) %></th> |
||
| 35 | <th class="protocol_append_path" ><%= l(:label_append_path) %></th> |
||
| 36 | <th class="protocol_is_default" ><%= l(:label_default) %></th> |
||
| 37 | <th class="protocol_delete" ></th> |
||
| 38 | </tr></thead> |
||
| 39 | <tbody id="settings_checkout_protocols_<%= scm %>"> |
||
| 40 | <% Setting.send("checkout_protocols_#{scm}").each_with_index do |protocol, index| %>
|
||
| 41 | <%= render :partial => 'checkout_protocol', :locals => {:protocol => Checkout::Protocol.new(protocol), :scm => scm, :index => index, :classes => cycle('odd', 'even')} %>
|
||
| 42 | <% end %>
|
||
| 43 | </tbody>
|
||
| 44 | </table>
|
||
| 45 | <div style="text-align: right"><%= link_to_function l(:button_add_protocol), "protocolForms.get('#{scm}').add()", {:class => "icon icon-add"} %></div> |
||
| 46 | </div> |