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 @ 1360:45dbcd39b9e9
History | View | Annotate | Download (1.59 KB)
| 1 | 1354:fc0fecf09eb9 | chris | |
|---|---|---|---|
| 2 | <%= javascript_include_tag 'repository' %>
|
||
| 3 | |||
| 4 | 1355:3d01be97cb5a | chris | <% if @repository %>
|
| 5 | |||
| 6 | 1354:fc0fecf09eb9 | chris | <%= form_for @repository,
|
| 7 | :as => :repository,
|
||
| 8 | :remote => true,
|
||
| 9 | 1355:3d01be97cb5a | chris | :url => { :controller => 'repositories', :action => 'update', :id => @repository },
|
| 10 | :method => 'put' do |f| %>
|
||
| 11 | 1354:fc0fecf09eb9 | chris | |
| 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 | 1355:3d01be97cb5a | chris | :id => @repository
|
| 49 | 1354:fc0fecf09eb9 | chris | },
|
| 50 | 1115:433d4f72a19b | Chris | :class => 'icon icon-user') %>
|
| 51 | 1354:fc0fecf09eb9 | chris | <% end %>
|
| 52 | </div>
|
||
| 53 | |||
| 54 | <%= submit_tag(l(:button_save)) %>
|
||
| 55 | |||
| 56 | 1355:3d01be97cb5a | chris | <% end %>
|
| 57 | |||
| 58 | 1115:433d4f72a19b | Chris | <% else %>
|
| 59 | 1354:fc0fecf09eb9 | chris | <%= l(:text_settings_repo_creation).html_safe %></ br> |
| 60 | 1115:433d4f72a19b | Chris | <% end %>
|