<% #-- # Copyright (C) 2010 Juho Nieminen # Copyright (C) 2010 Marko Peltola # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2007, 2008 Johan Sørensen # Copyright (C) 2008 Patrick Aljord # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # 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 . #++ %>

The repository will be owned by the <%= @repository.owner.class.human_name.downcase -%> <%= link_to @repository.owner.title, @owner -%>

Basic information

Add repository to project: <%= f.current_users_projects("repo_in_project", "repo_in_project", @project, @projects) -%> (or start a <%= link_to "new project", new_project_path -%>).

<%= f.label :name, t(:name, :scope => 'activerecord.attributes.repository') -%> (Allowed characters: A-Z, 0-9, _, -):
<%= f.text_field :name -%>

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

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

Options

<%= f.label :initialize_with_zip, t(:initialize_with_zip, :scope => 'activerecord.attributes.repository') -%> (optional):
<%=file_field_tag "local_package_file", :size => 39%>
<%= t("views.repos.initialize_with_zip_hint") -%>

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

<%= f.label :private_repository, t(:private_repository, :scope => 'activerecord.attributes.repository') %> <%= f.check_box :private_repo %>
<%= t("views.repos.private_repo_hint") -%>

<%= f.label :enable_merge_requests, t(:enable_merge_requests, :scope => 'activerecord.attributes.repository') -%> <%= f.check_box :merge_requests_enabled -%>
<%= t("views.repos.merge_requests_enabled") -%>