Revision 1355:3d01be97cb5a app/views/projects

View differences:

app/views/projects/settings/_repositories.html.erb
1 1

  
2 2
<%= javascript_include_tag 'repository' %>
3 3

  
4
<% if @repository %>
5

  
4 6
<%= form_for @repository,
5 7
       :as => :repository,
6
       :url => { :controller => 'repositories', :action => 'edit', :id => @project },
7 8
       :remote => true,
8
       :method => 'post' do |f| %>
9
       :url => { :controller => 'repositories', :action => 'update', :id => @repository },
10
       :method => 'put' do |f| %>
9 11

  
10 12
<%= error_messages_for 'repository' %>
11 13

  
12 14
<div class="box tabular">
13 15

  
14 16
<p>
15
<% if @repository %>
16 17
   <%= l(:text_settings_repo_explanation).html_safe %></ br>
17 18
   <% if @repository.is_external %>
18 19
     <p><%= l(:text_settings_repo_is_external).html_safe %></ br>
......
44 45
                {
45 46
                :controller => 'repositories',
46 47
                :action     => 'committers',
47
                :id         => @project
48
                :id         => @repository
48 49
                },
49 50
             :class => 'icon icon-user') %>
50 51
<% end %>
......
52 53

  
53 54
<%= submit_tag(l(:button_save)) %>
54 55

  
56
<% end %>
57

  
55 58
<% else %>
56 59
   <%= l(:text_settings_repo_creation).html_safe %></ br>
57 60
<% end %>
58 61

  
59
<% end %>

Also available in: Unified diff