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 / .svn / text-base / _repository.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (1.44 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 | 441:cbce1fd3b1b7 | Chris | <p> |
| 10 | <%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
|
||
| 11 | <% if @repository && ! @repository.class.scm_available %> |
||
| 12 | <br /> |
||
| 13 | <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em> |
||
| 14 | <% end %> |
||
| 15 | </p> |
||
| 16 | <% button_disabled = true %> |
||
| 17 | <% if @repository %> |
||
| 18 | <% button_disabled = ! @repository.class.scm_available %> |
||
| 19 | <%= repository_field_tags(f, @repository)%> |
||
| 20 | <% end %> |
||
| 21 | 0:513646585e45 | Chris | </div> |
| 22 | |||
| 23 | <div class="contextual"> |
||
| 24 | <% if @repository && !@repository.new_record? %> |
||
| 25 | 441:cbce1fd3b1b7 | Chris | <%= link_to(l(:label_user_plural), |
| 26 | {
|
||
| 27 | :controller => 'repositories', |
||
| 28 | :action => 'committers', |
||
| 29 | :id => @project |
||
| 30 | }, |
||
| 31 | :class => 'icon icon-user') %> |
||
| 32 | 0:513646585e45 | Chris | <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
|
| 33 | :confirm => l(:text_are_you_sure), |
||
| 34 | 441:cbce1fd3b1b7 | Chris | :method => :post, |
| 35 | :class => 'icon icon-del') %> |
||
| 36 | 0:513646585e45 | Chris | <% end %> |
| 37 | </div> |
||
| 38 | |||
| 39 | 441:cbce1fd3b1b7 | Chris | <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), |
| 40 | :disabled => button_disabled) %> |
||
| 41 | 0:513646585e45 | Chris | <% end %> |