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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
006dac8f
Commit
006dac8f
authored
Apr 30, 2021
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'yogi-hide-templates-buttons' into 'master'"
This reverts merge request !59083
parent
942f4c6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
27 deletions
+20
-27
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+5
-6
changelogs/unreleased/yogi-hide-templates-buttons.yml
changelogs/unreleased/yogi-hide-templates-buttons.yml
+0
-5
ee/app/views/projects/_project_templates.html.haml
ee/app/views/projects/_project_templates.html.haml
+15
-16
No files found.
app/views/projects/new.html.haml
View file @
006dac8f
...
...
@@ -51,12 +51,11 @@
=
render
'new_project_fields'
,
f:
f
,
project_name_id:
"blank-project-name"
#create-from-template-pane
.tab-pane.js-toggle-container.px-0.pb-0
{
class:
active_when
(
active_tab
==
'template'
),
role:
'tabpanel'
}
.gl-card.gl-my-5
.gl-card-body
%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
}
.card.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/yogi-hide-templates-buttons.yml
deleted
100644 → 0
View file @
942f4c6c
---
title
:
Remove template tabs in new project page for GitLab.com
merge_request
:
59083
author
:
Yogi (@yo)
type
:
changed
ee/app/views/projects/_project_templates.html.haml
View file @
006dac8f
...
...
@@ -2,22 +2,21 @@
-
project_template_count
=
current_user
.
available_custom_project_templates
.
count
-
group_id
=
params
[
:namespace_id
]
-
unless
Gitlab
.
com?
.project-templates-buttons
%ul
.nav-tabs.nav-links.nav.scrolling-tabs
%li
.built-in-tab
%a
.nav-link.active
{
href:
"#built-in"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Built-in'
)
%span
.badge.badge-pill
=
Gitlab
::
ProjectTemplate
.
all
.
count
+
Gitlab
::
SampleDataTemplate
.
all
.
count
%li
.custom-instance-project-templates-tab
%a
.nav-link.js-custom-instance-project-templates-nav-link.qa-instance-templates-tab
{
href:
"#custom-instance-project-templates"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Instance'
)
%span
.badge.badge-pill.qa-instance-template-tab-badge
=
project_template_count
%li
.custom-group-project-templates-tab
%a
.nav-link.js-custom-group-project-templates-nav-link.qa-group-templates-tab
{
href:
"#custom-group-project-templates"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Group'
)
%span
.badge.badge-pill.qa-group-template-tab-badge
=
group_project_templates_count
(
group_id
)
.project-templates-buttons
%ul
.nav-tabs.nav-links.nav.scrolling-tabs
%li
.built-in-tab
%a
.nav-link.active
{
href:
"#built-in"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Built-in'
)
%span
.badge.badge-pill
=
Gitlab
::
ProjectTemplate
.
all
.
count
+
Gitlab
::
SampleDataTemplate
.
all
.
count
%li
.custom-instance-project-templates-tab
%a
.nav-link.js-custom-instance-project-templates-nav-link.qa-instance-templates-tab
{
href:
"#custom-instance-project-templates"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Instance'
)
%span
.badge.badge-pill.qa-instance-template-tab-badge
=
project_template_count
%li
.custom-group-project-templates-tab
%a
.nav-link.js-custom-group-project-templates-nav-link.qa-group-templates-tab
{
href:
"#custom-group-project-templates"
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Group'
)
%span
.badge.badge-pill.qa-group-template-tab-badge
=
group_project_templates_count
(
group_id
)
.tab-content
.project-templates-buttons.import-buttons.tab-pane.active
#built-in
...
...
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