##// END OF EJS Templates
scm: change separator between command and version ',' to '|' in setting (#4273)....
Toshi MARUYAMA -
r5607:653884f27b7f
parent child
Show More
@@ -1,43 +1,44
1 <% remote_form_for :repository, @repository,
1 <% remote_form_for :repository, @repository,
2 :url => { :controller => 'repositories', :action => 'edit', :id => @project },
2 :url => { :controller => 'repositories', :action => 'edit', :id => @project },
3 :builder => TabularFormBuilder,
3 :builder => TabularFormBuilder,
4 :lang => current_language do |f| %>
4 :lang => current_language do |f| %>
5
5
6 <%= error_messages_for 'repository' %>
6 <%= error_messages_for 'repository' %>
7
7
8 <div class="box tabular">
8 <div class="box tabular">
9 <p>
9 <p>
10 <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
10 <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
11 <% if @repository %>
11 <% if @repository %>
12 <br />
12 <br />
13 <%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
13 <%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
14 <%= l(:text_scm_command) -%>: <%= @repository.class.scm_command -%>,
14 <%= l(:text_scm_command) -%>: <%= @repository.class.scm_command %>
15 |
15 <%= l(:text_scm_command_version) -%>: <%= @repository.class.scm_version_string %>
16 <%= l(:text_scm_command_version) -%>: <%= @repository.class.scm_version_string %>
16 <% end %>
17 <% end %>
17 </p>
18 </p>
18 <% button_disabled = true %>
19 <% button_disabled = true %>
19 <% if @repository %>
20 <% if @repository %>
20 <% button_disabled = ! @repository.class.scm_available %>
21 <% button_disabled = ! @repository.class.scm_available %>
21 <%= repository_field_tags(f, @repository)%>
22 <%= repository_field_tags(f, @repository)%>
22 <% end %>
23 <% end %>
23 </div>
24 </div>
24
25
25 <div class="contextual">
26 <div class="contextual">
26 <% if @repository && !@repository.new_record? %>
27 <% if @repository && !@repository.new_record? %>
27 <%= link_to(l(:label_user_plural),
28 <%= link_to(l(:label_user_plural),
28 {
29 {
29 :controller => 'repositories',
30 :controller => 'repositories',
30 :action => 'committers',
31 :action => 'committers',
31 :id => @project
32 :id => @project
32 },
33 },
33 :class => 'icon icon-user') %>
34 :class => 'icon icon-user') %>
34 <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
35 <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
35 :confirm => l(:text_are_you_sure),
36 :confirm => l(:text_are_you_sure),
36 :method => :post,
37 :method => :post,
37 :class => 'icon icon-del') %>
38 :class => 'icon icon-del') %>
38 <% end %>
39 <% end %>
39 </div>
40 </div>
40
41
41 <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save),
42 <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save),
42 :disabled => button_disabled) %>
43 :disabled => button_disabled) %>
43 <% end %>
44 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now