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 / app / views / projects / settings / _repository.rhtml @ 443:350acce374a2

History | View | Annotate | Download (1.73 KB)

1 212:f5860b03d365 luis
2
<%= javascript_include_tag 'repository' %>
3
4 441:cbce1fd3b1b7 Chris
<% remote_form_for :repository, @repository,
5 0:513646585e45 Chris
                   :url => { :controller => 'repositories', :action => 'edit', :id => @project },
6
                   :builder => TabularFormBuilder,
7
                   :lang => current_language do |f| %>
8
9
<%= error_messages_for 'repository' %>
10
11
<div class="box tabular">
12 273:c09865a48f4e luis
13 290:4d4acbad8728 chris
<p>
14 275:ec56461d3770 luis
<% if @repository %>
15 290:4d4acbad8728 chris
   <%= l(:text_settings_repo_explanation) %></ br>
16 275:ec56461d3770 luis
   <% if @repository.is_external %>
17 299:defe55be97b9 chris
     <p><%= l(:text_settings_repo_is_external) %></ br>
18 275:ec56461d3770 luis
   <% else %>
19 299:defe55be97b9 chris
     <p><%= l(:text_settings_repo_is_internal) %></ br>
20
   <% end %>
21 290:4d4acbad8728 chris
</p>
22
23 273:c09865a48f4e luis
24 275:ec56461d3770 luis
25
26 272:f89f7331fc00 luis
27 201:61d8fba252fd luis
<p>
28 204:6849e7b210c7 luis
        <%= label_tag('repository_is_external', l(:label_is_external_repository)) %>
29 212:f5860b03d365 luis
        <%= check_box :repository, :is_external, :onclick => "toggle_ext_url()" %>
30 290:4d4acbad8728 chris
        <br/><em><%= l(:setting_external_repository) %></em>
31 201:61d8fba252fd luis
</p>
32
33 204:6849e7b210c7 luis
34
<p>
35
        <%= label_tag('repository_external_url', l(:label_repository_external_url)) %>
36 299:defe55be97b9 chris
        <%= text_field :repository, :external_url, :disabled => !(@repository and @repository.is_external) %>
37 290:4d4acbad8728 chris
        <br/><em><%= l(:setting_external_repository_url) %></em>
38 204:6849e7b210c7 luis
</p>
39
40 290:4d4acbad8728 chris
<p><%= l(:text_settings_repo_need_help) %></p>
41 204:6849e7b210c7 luis
42 0:513646585e45 Chris
</div>
43
44
<div class="contextual">
45
<% if @repository && !@repository.new_record? %>
46 441:cbce1fd3b1b7 Chris
<%= link_to(l(:label_user_plural),
47
                {
48
                :controller => 'repositories',
49
                :action     => 'committers',
50
                :id         => @project
51
                },
52
             :class => 'icon icon-user') %>
53 0:513646585e45 Chris
<% end %>
54
</div>
55
56 275:ec56461d3770 luis
<%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %>
57 299:defe55be97b9 chris
58
<% else %>
59
   <%= l(:text_settings_repo_creation) %></ br>
60 0:513646585e45 Chris
<% end %>
61 299:defe55be97b9 chris
62
<% end %>