2013-08-12 10:21:57 -04:00
|
|
|
.project-edit-container
|
2013-05-14 05:46:41 -04:00
|
|
|
.project-edit-errors
|
2013-05-14 05:56:03 -04:00
|
|
|
= render 'projects/errors'
|
2013-05-14 05:46:41 -04:00
|
|
|
.project-edit-content
|
2013-09-13 08:39:04 -04:00
|
|
|
|
2014-11-29 14:34:18 -05:00
|
|
|
= form_for @project, html: { class: 'new_project form-horizontal' } do |f|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group.project-name-holder
|
2014-12-22 06:27:48 -05:00
|
|
|
= f.label :path, class: 'control-label' do
|
2014-12-22 06:50:58 -05:00
|
|
|
%strong Project path
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2014-12-22 06:27:48 -05:00
|
|
|
.input-group
|
|
|
|
= f.text_field :path, placeholder: "my-awesome-project", class: "form-control", tabindex: 1, autofocus: true
|
|
|
|
.input-group-addon
|
|
|
|
\.git
|
2013-05-14 05:46:41 -04:00
|
|
|
|
|
|
|
- if current_user.can_select_namespace?
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2013-12-31 09:01:25 -05:00
|
|
|
= f.label :namespace_id, class: 'control-label' do
|
2013-05-14 05:46:41 -04:00
|
|
|
%span Namespace
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2014-01-11 05:11:54 -05:00
|
|
|
= f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'select2', tabindex: 2}
|
2013-05-14 05:46:41 -04:00
|
|
|
|
2014-03-11 09:15:08 -04:00
|
|
|
%hr
|
|
|
|
.js-toggle-container
|
|
|
|
.form-group
|
|
|
|
.col-sm-2
|
|
|
|
.col-sm-10
|
|
|
|
= link_to "#", class: 'js-toggle-button' do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-upload
|
2015-01-13 13:34:01 -05:00
|
|
|
%span Import existing repository by URL
|
2014-03-11 09:15:08 -04:00
|
|
|
.js-toggle-content.hide
|
|
|
|
.form-group.import-url-data
|
|
|
|
= f.label :import_url, class: 'control-label' do
|
2014-10-15 07:13:42 -04:00
|
|
|
%span Import existing git repo
|
2014-03-11 09:15:08 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :import_url, class: 'form-control', placeholder: 'https://github.com/randx/six.git'
|
2014-03-11 12:34:43 -04:00
|
|
|
.bs-callout.bs-callout-info
|
2014-09-10 21:20:06 -04:00
|
|
|
This URL must be publicly accessible or you can add a username and password like this: https://username:password@gitlab.com/company/project.git.
|
2014-03-11 12:23:03 -04:00
|
|
|
%br
|
2014-09-10 21:38:47 -04:00
|
|
|
The import will time out after 4 minutes. For big repositories, use a clone/push combination.
|
2014-10-15 07:13:42 -04:00
|
|
|
For SVN repositories, check #{link_to "this migrating from SVN doc.", "http://doc.gitlab.com/ce/workflow/migrating_from_svn.html"}
|
2015-01-13 13:34:01 -05:00
|
|
|
|
2015-01-22 14:48:20 -05:00
|
|
|
.project-import.form-group
|
|
|
|
.col-sm-2
|
|
|
|
.col-sm-10
|
|
|
|
- if github_import_enabled?
|
2015-02-02 20:01:07 -05:00
|
|
|
= link_to status_import_github_path do
|
2015-01-13 13:34:01 -05:00
|
|
|
%i.fa.fa-github
|
|
|
|
Import projects from GitHub
|
2015-01-22 14:48:20 -05:00
|
|
|
- else
|
|
|
|
= link_to '#', class: 'how_to_import_link light' do
|
|
|
|
%i.fa.fa-github
|
|
|
|
Import projects from GitHub
|
|
|
|
= render 'github_import_modal'
|
2015-02-17 19:27:40 -05:00
|
|
|
|
2015-01-27 18:37:19 -05:00
|
|
|
.project-import.form-group
|
|
|
|
.col-sm-2
|
|
|
|
.col-sm-10
|
|
|
|
- if gitlab_import_enabled?
|
2015-02-02 20:01:07 -05:00
|
|
|
= link_to status_import_gitlab_path do
|
2015-01-27 18:37:19 -05:00
|
|
|
%i.fa.fa-heart
|
|
|
|
Import projects from GitLab.com
|
2015-02-17 19:27:40 -05:00
|
|
|
- elsif request.host != 'gitlab.com'
|
2015-01-27 18:37:19 -05:00
|
|
|
= link_to '#', class: 'how_to_import_link light' do
|
|
|
|
%i.fa.fa-heart
|
|
|
|
Import projects from GitLab.com
|
|
|
|
= render 'gitlab_import_modal'
|
2014-12-31 08:07:48 -05:00
|
|
|
|
2015-02-20 12:38:41 -05:00
|
|
|
.project-import.form-group
|
|
|
|
.col-sm-2
|
|
|
|
.col-sm-10
|
|
|
|
= link_to new_import_gitorious_path do
|
|
|
|
%i.fa.fa-heart
|
|
|
|
Import projects from Gitorious.org
|
|
|
|
|
2014-12-31 08:07:48 -05:00
|
|
|
%hr.prepend-botton-10
|
2014-03-11 09:15:08 -04:00
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2013-12-31 09:01:25 -05:00
|
|
|
= f.label :description, class: 'control-label' do
|
2013-07-29 14:06:59 -04:00
|
|
|
Description
|
|
|
|
%span.light (optional)
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2013-12-31 09:01:25 -05:00
|
|
|
= f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250, tabindex: 3
|
2013-11-06 10:13:21 -05:00
|
|
|
= render "visibility_level", f: f, visibility_level: gitlab_config.default_projects_features.visibility_level, can_change_visibility_level: true
|
2013-05-14 05:46:41 -04:00
|
|
|
|
2013-08-01 09:20:18 -04:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
|
2013-05-14 05:46:41 -04:00
|
|
|
|
2013-08-01 09:20:18 -04:00
|
|
|
- if current_user.can_create_group?
|
|
|
|
.pull-right
|
2013-12-31 09:01:25 -05:00
|
|
|
.light
|
2013-08-01 09:20:18 -04:00
|
|
|
Need a group for several dependent projects?
|
|
|
|
= link_to new_group_path, class: "btn btn-tiny" do
|
|
|
|
Create a group
|
2013-05-14 05:46:41 -04:00
|
|
|
|
2014-01-01 14:42:42 -05:00
|
|
|
.save-project-loader.hide
|
2014-06-21 03:41:44 -04:00
|
|
|
.center
|
2014-02-05 13:30:57 -05:00
|
|
|
%h2
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-spinner.fa-spin
|
2014-02-05 13:30:57 -05:00
|
|
|
Creating project & repository.
|
2013-08-12 10:21:57 -04:00
|
|
|
%p Please wait a moment, this page will automatically refresh when ready.
|
2015-02-05 13:31:36 -05:00
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
$ ->
|
|
|
|
$('.how_to_import_link').bind 'click', (e) ->
|
|
|
|
e.preventDefault()
|
|
|
|
import_modal = $(this).parent().find(".modal").show()
|
|
|
|
$('.modal-header .close').bind 'click', ->
|
2015-02-17 19:27:40 -05:00
|
|
|
$(".modal").hide()
|