Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luís <me@andr3.net>2018-02-23 12:00:19 +0300
committerPhil Hughes <me@iamphill.com>2018-02-23 12:00:19 +0300
commitda531c39057f7216f367cfb8b9e4768bd9728a61 (patch)
treec65e00b7f69a19d956fdc69777fadda2ec4b7d7c /app/views/projects/_new_project_push_tip.html.haml
parent7834f63c07dd52965e3aa30262d2b8f130c955aa (diff)
Add Tip about Push to Create project on New Project page
Diffstat (limited to 'app/views/projects/_new_project_push_tip.html.haml')
-rw-r--r--app/views/projects/_new_project_push_tip.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/_new_project_push_tip.html.haml b/app/views/projects/_new_project_push_tip.html.haml
new file mode 100644
index 00000000000..9bc69211d12
--- /dev/null
+++ b/app/views/projects/_new_project_push_tip.html.haml
@@ -0,0 +1,11 @@
+.push-to-create-popover
+ %p
+ = label_tag(:push_to_create_tip, _("Private projects can be created in your personal namespace with:"), class: "weight-normal")
+
+ %p.input-group.project-tip-command
+ %span.input-group-btn
+ = text_field_tag :push_to_create_tip, push_to_create_project_command, class: "js-select-on-focus form-control monospace", readonly: true, aria: { label: _("Push project from command line") }
+ %span.input-group-btn
+ = clipboard_button(text: push_to_create_project_command, title: _("Copy command to clipboard"), placement: "right")
+ %p
+ = link_to("What does this command do?", help_page_path("gitlab-basics/create-project", anchor: "push-to-create-a-new-project"), target: "_blank")