<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <%= breadcrumbs_from(@root) -%>

Editing repository <%= link_to h(@repository.name), [@repository.project, @repository] -%>

<%= error_messages(@repository) -%> <%= form_for([@repository.project, @repository.reload]) do |f| -%>

<%= f.label :description -%> (<%= markdown_hint -%>):
<%= f.text_area :description, :class => "text wide medium" -%>

<%= f.label :name %> Please note that if you change the name, all URLs will be updated immediately
<%= f.text_field :name %>

<%= f.label :head %> Change the symbolic ref the HEAD in the git repository points to:
<%= f.select(:head, @heads.map{|h| [h.name, h.name] }, :selected => @repository.head ? @repository.head.name : nil) -%>

<%= f.label :deny_force_pushing %>: <%= f.check_box :deny_force_pushing %>
Denying force pushing means that pushing non-fastforwards (eg git push -f) is not allowed, it will also prevent tag deletion and remote branch removals (you can toggle this whenever you like)

<%= f.label :merge_requests_enabled, "Enable merge requests?" -%> <%= f.check_box :merge_requests_enabled -%>
<%= t("views.repos.merge_requests_enabled") -%>

<% unless @repository.owned_by_group? -%>

<%= f.label :owner_id, "Transfer ownership to a group (optional)" -%>:
<%= f.select :owner_id, @groups.map{|g| [g.name, g.id]}, :include_blank => true, :selected => nil -%>
Note: Only change ownership of this repository, if you are absolutely sure you want to give admin and commit access to everyone in the selected group.

<% end -%> <%= f.submit t("views.repos.btn_edit_repo") -%> <% end -%> <%= content_for :sidebar do -%> <% end -%>