<% #-- # Copyright (C) 2010 Marko Peltola # 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), [@owner, @repository] -%>

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

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

<%= f.label :license, t(:license, :scope => 'activerecord.attributes.repository') -%>
<%= f.select :license, Repository::LICENSES, { :selected => (@repository.license || GitoriousConfig['default_license']) } -%>

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

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

<%= f.label "Private repository" %>: <%= f.check_box :private_repo %>
<%= t("views.repos.private_repo_hint") -%>

<%= 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 creation (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") -%>

<%= render :partial => "mirroring_settings", :locals => {:mirroring_settings => f} -%>

<% unless @repository.owned_by_group? -%>

<%= f.label :owner_id, "Transfer ownership to a team (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're absolutely sure you want to give admin and commit access to everyone in the selected group.

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