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 / _repositories.html.erb @ 1592:72d9219f2f19
History | View | Annotate | Download (1.59 KB)
| 1 |
|
|---|---|
| 2 |
<%= javascript_include_tag 'repository' %>
|
| 3 |
|
| 4 |
<% if @repository %>
|
| 5 |
|
| 6 |
<%= form_for @repository,
|
| 7 |
:as => :repository,
|
| 8 |
:remote => true,
|
| 9 |
:url => { :controller => 'repositories', :action => 'update', :id => @repository },
|
| 10 |
:method => 'put' do |f| %>
|
| 11 |
|
| 12 |
<%= error_messages_for 'repository' %>
|
| 13 |
|
| 14 |
<div class="box tabular"> |
| 15 |
|
| 16 |
<p>
|
| 17 |
<%= l(:text_settings_repo_explanation).html_safe %></ br> |
| 18 |
<% if @repository.is_external %>
|
| 19 |
<p><%= l(:text_settings_repo_is_external).html_safe %></ br> |
| 20 |
<% else %>
|
| 21 |
<p><%= l(:text_settings_repo_is_internal).html_safe %></ br> |
| 22 |
<% end %>
|
| 23 |
</p>
|
| 24 |
|
| 25 |
|
| 26 |
<p>
|
| 27 |
<%= label_tag('repository_is_external', l(:label_is_external_repository)) %>
|
| 28 |
<%= check_box :repository, :is_external, :onclick => "toggle_ext_url()" %>
|
| 29 |
<br/><em><%= l(:setting_external_repository).html_safe %></em> |
| 30 |
</p>
|
| 31 |
|
| 32 |
<p>
|
| 33 |
<%= label_tag('repository_external_url', l(:label_repository_external_url)) %>
|
| 34 |
<%= text_field :repository, :external_url, :disabled => !(@repository and @repository.is_external) %>
|
| 35 |
<br/><em><%= l(:setting_external_repository_url).html_safe %></em> |
| 36 |
</p>
|
| 37 |
|
| 38 |
<p><%= l(:text_settings_repo_need_help).html_safe %></p> |
| 39 |
|
| 40 |
</div>
|
| 41 |
|
| 42 |
<div class="contextual"> |
| 43 |
<% if @repository && !@repository.new_record? %>
|
| 44 |
<%= link_to(l(:label_user_plural),
|
| 45 |
{
|
| 46 |
:controller => 'repositories',
|
| 47 |
:action => 'committers',
|
| 48 |
:id => @repository
|
| 49 |
},
|
| 50 |
:class => 'icon icon-user') %>
|
| 51 |
<% end %>
|
| 52 |
</div>
|
| 53 |
|
| 54 |
<%= submit_tag(l(:button_save)) %>
|
| 55 |
|
| 56 |
<% end %>
|
| 57 |
|
| 58 |
<% else %>
|
| 59 |
<%= l(:text_settings_repo_creation).html_safe %></ br> |
| 60 |
<% end %>
|
| 61 |
|