| 1 |
<h1>Create a clone of <%= link_to h(@repository_to_clone.name), |
| 2 |
project_repository_path(@project, @repository_to_clone) -%> <small>in |
| 3 |
<%= link_to h(@project.title), project_path(@project) -%></small></h1> |
| 4 |
|
| 5 |
<%= error_messages_for :repository -%> |
| 6 |
|
| 7 |
<% form_for @repository, :repository, |
| 8 |
:url => create_project_repository_path(@project, @repository_to_clone) do |f| -%> |
| 9 |
<p> |
| 10 |
<%= f.label :name, %Q{Name <small>(eg "#{current_user.login}s-sandbox", "performance-fixes" etc)</small>} -%><br /> |
| 11 |
<%= f.text_field :name, :class => "text" -%> |
| 12 |
</p> |
| 13 |
<%= f.submit "Clone repository" -%> |
| 14 |
<% end -%> |
| 15 |
|
| 16 |
<p> |
| 17 |
<em><strong>Note:</strong> Repository clones that haven't had anything pushed |
| 18 |
to them within 7 days are automatically removed (so the project don't end up |
| 19 |
with lots of empty repositories), so it's a good idea to wait with creating |
| 20 |
the clone here until there's something to push.</em> |
| 21 |
</p> |
| 22 |
|
| 23 |
<% content_for :submenu do -%> |
| 24 |
<li><%= link_to "Back to repository", [@project, @repository_to_clone] -%> |
| 25 |
<% end -%> |