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