Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
027c756b
Commit
027c756b
authored
Apr 18, 2019
by
Illya Klymov
Committed by
Kushal Pandya
Apr 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions on how to contribute a "Built-In" template on projects/new"
parent
33665fa5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+6
-1
changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml
changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-0
No files found.
app/views/projects/new.html.haml
View file @
027c756b
...
...
@@ -48,7 +48,12 @@
=
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'
}
#create-from-template-pane
.tab-pane.px-0.pb-0
{
class:
active_when
(
active_tab
==
'template'
),
role:
'tabpanel'
}
.card-slim.m-4.p-4
%div
-
contributing_templates_url
=
'https://gitlab.com/gitlab-org/project-templates/contributing'
-
link_start
=
'<a href="%{url}" target="_blank" rel="noopener noreferrer">'
.
html_safe
%
{
url:
contributing_templates_url
}
=
_
(
'Learn how to %{link_start}contribute to the built-in templates%{link_end}'
).
html_safe
%
{
link_start:
link_start
,
link_end:
'</a>'
.
html_safe
}
=
form_for
@project
,
html:
{
class:
'new_project'
}
do
|
f
|
.project-template
.form-group
...
...
changelogs/unreleased/xanf-gitlab-ce-add-template-link.yml
0 → 100644
View file @
027c756b
---
title
:
Add instructions on how to contribute a Built-In template for project
merge_request
:
26976
author
:
type
:
other
locale/gitlab.pot
View file @
027c756b
...
...
@@ -5260,6 +5260,9 @@ msgstr ""
msgid "Lead"
msgstr ""
msgid "Learn how to %{link_start}contribute to the built-in templates%{link_end}"
msgstr ""
msgid "Learn more"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment