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.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (1.26 KB)
| 1 | 441:cbce1fd3b1b7 | Chris | <% remote_form_for :repository, @repository,
|
|---|---|---|---|
| 2 | 0:513646585e45 | Chris | :url => { :controller => 'repositories', :action => 'edit', :id => @project },
|
| 3 | :builder => TabularFormBuilder,
|
||
| 4 | :lang => current_language do |f| %>
|
||
| 5 | |||
| 6 | <%= error_messages_for 'repository' %>
|
||
| 7 | |||
| 8 | <div class="box tabular"> |
||
| 9 | 29:192d132064a5 | Chris | <% if !@repository || !@repository.url %>
|
| 10 | 126:11e93d30115a | chris | <ul><li><%= l(:text_settings_repo_creation) %></li></ul> |
| 11 | 441:cbce1fd3b1b7 | Chris | <% end %>
|
| 12 | 0:513646585e45 | Chris | <p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p> |
| 13 | <%= repository_field_tags(f, @repository) if @repository %>
|
||
| 14 | </div>
|
||
| 15 | |||
| 16 | <div class="contextual"> |
||
| 17 | <% if @repository && !@repository.new_record? %>
|
||
| 18 | 441:cbce1fd3b1b7 | Chris | <%= link_to(l(:label_user_plural),
|
| 19 | {
|
||
| 20 | :controller => 'repositories',
|
||
| 21 | :action => 'committers',
|
||
| 22 | :id => @project
|
||
| 23 | },
|
||
| 24 | :class => 'icon icon-user') %>
|
||
| 25 | 0:513646585e45 | Chris | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
|
| 26 | :confirm => l(:text_are_you_sure),
|
||
| 27 | 441:cbce1fd3b1b7 | Chris | :method => :post,
|
| 28 | :class => 'icon icon-del') %>
|
||
| 29 | 0:513646585e45 | Chris | <% end %>
|
| 30 | </div>
|
||
| 31 | |||
| 32 | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %>
|
||
| 33 | <% end %> |