To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / settings / _repository.html.erb @ 918:04114f36670d
History | View | Annotate | Download (1.73 KB)
| 1 |
|
|---|---|
| 2 |
<%= javascript_include_tag 'repository' %>
|
| 3 |
|
| 4 |
<% remote_form_for :repository, @repository,
|
| 5 |
: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 |
|
| 13 |
<p>
|
| 14 |
<% if @repository %>
|
| 15 |
<%= l(:text_settings_repo_explanation) %></ br> |
| 16 |
<% if @repository.is_external %>
|
| 17 |
<p><%= l(:text_settings_repo_is_external) %></ br> |
| 18 |
<% else %>
|
| 19 |
<p><%= l(:text_settings_repo_is_internal) %></ br> |
| 20 |
<% end %>
|
| 21 |
</p>
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
<p>
|
| 28 |
<%= label_tag('repository_is_external', l(:label_is_external_repository)) %>
|
| 29 |
<%= check_box :repository, :is_external, :onclick => "toggle_ext_url()" %>
|
| 30 |
<br/><em><%= l(:setting_external_repository) %></em> |
| 31 |
</p>
|
| 32 |
|
| 33 |
|
| 34 |
<p>
|
| 35 |
<%= label_tag('repository_external_url', l(:label_repository_external_url)) %>
|
| 36 |
<%= text_field :repository, :external_url, :disabled => !(@repository and @repository.is_external) %>
|
| 37 |
<br/><em><%= l(:setting_external_repository_url) %></em> |
| 38 |
</p>
|
| 39 |
|
| 40 |
<p><%= l(:text_settings_repo_need_help) %></p> |
| 41 |
|
| 42 |
</div>
|
| 43 |
|
| 44 |
<div class="contextual"> |
| 45 |
<% if @repository && !@repository.new_record? %>
|
| 46 |
<%= link_to(l(:label_user_plural),
|
| 47 |
{
|
| 48 |
:controller => 'repositories',
|
| 49 |
:action => 'committers',
|
| 50 |
:id => @project
|
| 51 |
},
|
| 52 |
:class => 'icon icon-user') %>
|
| 53 |
<% end %>
|
| 54 |
</div>
|
| 55 |
|
| 56 |
<%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %>
|
| 57 |
|
| 58 |
<% else %>
|
| 59 |
<%= l(:text_settings_repo_creation) %></ br> |
| 60 |
<% end %>
|
| 61 |
|
| 62 |
<% end %>
|