summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-04-11 13:19:17 +0300
committerIllya Klymov <xanf@xanf.me>2019-04-18 06:29:34 +0300
commitae65fa352bf398897e2c95fd67dcd0ac39b25b90 (patch)
treee5e70e180d2afb5402bfef0bf636c20c8e2274a1
parentce02daea08c4cc7bc5e65e56f9b3d744a2e1faa6 (diff)
downloadgitlab-ce-ae65fa352bf398897e2c95fd67dcd0ac39b25b90.tar.gz
Add contribute project template link
-rw-r--r--app/views/projects/new.html.haml5
-rw-r--r--changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml5
-rw-r--r--locale/gitlab.pot6
3 files changed, 15 insertions, 1 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index ff7c36c2d5b..602a17a04fe 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -48,7 +48,10 @@
= form_for @project, html: { class: 'new_project' } do |f|
= render 'new_project_fields', f: f, project_name_id: "blank-project-name"
- .tab-pane.no-padding{ id: 'create-from-template-pane', class: active_when(active_tab == 'template'), role: 'tabpanel' }
+ .tab-pane.px-0.pb-0{ id: 'create-from-template-pane', class: active_when(active_tab == 'template'), role: 'tabpanel' }
+ .card-slim.m-4.p-4
+ %div
+ = _('Learn how to %{contribute_project_templates}').html_safe % { contribute_project_templates: link_to(_('contribute built-in templates'), 'https://gitlab.com/gitlab-org/project-templates/contributing', target: '_blank', rel: 'noopener noreferrer') }
= form_for @project, html: { class: 'new_project' } do |f|
.project-template
.form-group
diff --git a/changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml b/changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml
new file mode 100644
index 00000000000..b868758dcd2
--- /dev/null
+++ b/changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml
@@ -0,0 +1,5 @@
+---
+title: Add instructions on how to contribute a Built-In template for project
+merge_request: 26976
+author:
+type: other
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 0d6cb4c85b5..97d0e0b9129 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -5260,6 +5260,9 @@ msgstr ""
msgid "Lead"
msgstr ""
+msgid "Learn how to %{contribute_project_templates}"
+msgstr ""
+
msgid "Learn more"
msgstr ""
@@ -10728,6 +10731,9 @@ msgstr ""
msgid "connecting"
msgstr ""
+msgid "contribute built-in templates"
+msgstr ""
+
msgid "could not read private key, is the passphrase correct?"
msgstr ""