<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2007, 2008 Johan Sørensen # # 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) -%>

Add new repository to <%= link_to h(@owner.title), @owner -%>

<%= error_messages(@repository) -%> <%= form_for([@repository.project, @repository]) do |f| -%>
  • <%= f.label :name -%>
    <%= f.text_field :name -%>
  • <%= f.label :description -%>
    <%= f.text_area :description, :class => "text wide" -%>
    (<%= markdown_hint -%>)
  • <%= f.label :enable_merge_requests -%>
    <%= f.check_box :merge_requests_enabled -%> <%= t("views.repos.merge_requests_enabled") -%>
  • <% if Gitorious.repositories_default_private? %>
  • <%= image_tag("silk/lock.png", :class => "private_access") %> This repository will be private by default, but can be made public after you have finished creating it.
  • <% end %>
    <%= f.submit "Create repository" -%>
    <% end -%> <%= content_for :sidebar do -%>

    Information

    The repository will be in the <%= link_to h(@project.title), @project -%> project, and owned by <%= link_to h(@repository.owner.title), @repository.owner -%> (a <%= @repository.owner.class.human_name.downcase -%>).

    <% end -%>