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
b32ea1d5
Commit
b32ea1d5
authored
Feb 09, 2021
by
Yogi
Committed by
Kushal Pandya
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply new GitLab UI for buttons in create project page
parent
9da4bd72
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/projects/_import_project_pane.html.haml
app/views/projects/_import_project_pane.html.haml
+1
-1
app/views/projects/_new_project_fields.html.haml
app/views/projects/_new_project_fields.html.haml
+2
-2
changelogs/unreleased/gl-button-new-project.yml
changelogs/unreleased/gl-button-new-project.yml
+5
-0
ee/app/views/registrations/projects/new.html.haml
ee/app/views/registrations/projects/new.html.haml
+1
-1
No files found.
app/views/projects/_import_project_pane.html.haml
View file @
b32ea1d5
...
...
@@ -8,7 +8,7 @@
.import-buttons
-
if
gitlab_project_import_enabled?
.import_gitlab_project.has-tooltip
{
data:
{
container:
'body'
}
}
=
link_to
new_import_gitlab_project_path
,
class:
'gl-button btn-default btn btn_import_gitlab_project
project-submit
'
,
**
tracking_attrs
(
track_label
,
'click_button'
,
'gitlab_export'
)
do
=
link_to
new_import_gitlab_project_path
,
class:
'gl-button btn-default btn btn_import_gitlab_project'
,
**
tracking_attrs
(
track_label
,
'click_button'
,
'gitlab_export'
)
do
.gl-button-icon
=
sprite_icon
(
'tanuki'
)
=
_
(
"GitLab export"
)
...
...
app/views/projects/_new_project_fields.html.haml
View file @
b32ea1d5
...
...
@@ -62,5 +62,5 @@
.option-description
=
s_
(
'ProjectsNew|Allows you to immediately clone this project’s repository. Skip this if you plan to push up an existing repository.'
)
=
f
.
submit
_
(
'Create project'
),
class:
"btn
btn-success project-submit
"
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"click_button"
,
track_property:
"create_project"
,
track_value:
""
}
=
link_to
_
(
'Cancel'
),
dashboard_projects_path
,
class:
'btn btn-cancel'
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"click_button"
,
track_property:
"cancel"
,
track_value:
""
}
=
f
.
submit
_
(
'Create project'
),
class:
"btn
gl-button btn-success
"
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"click_button"
,
track_property:
"create_project"
,
track_value:
""
}
=
link_to
_
(
'Cancel'
),
dashboard_projects_path
,
class:
'btn
gl-button btn-default
btn-cancel'
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_event:
"click_button"
,
track_property:
"cancel"
,
track_value:
""
}
changelogs/unreleased/gl-button-new-project.yml
0 → 100644
View file @
b32ea1d5
---
title
:
Apply new GitLab UI for buttons in create project page
merge_request
:
53454
author
:
Yogi (@yo)
type
:
other
ee/app/views/registrations/projects/new.html.haml
View file @
b32ea1d5
...
...
@@ -48,7 +48,7 @@
=
link_to
sprite_icon
(
'question-o'
),
help_page_path
(
'public_access/public_access'
),
aria:
{
label:
'Documentation for Visibility Level'
},
target:
'_blank'
,
rel:
'noopener noreferrer'
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
visibility_level
.
to_i
,
can_change_visibility_level:
true
,
form_model:
@project
,
with_label:
false
=
f
.
submit
_
(
'Create project'
),
class:
'btn
btn-success project-submit
w-100'
,
data:
{
track_label:
'blank_project'
,
track_event:
'click_button'
,
track_property:
'create_project'
,
track_value:
''
}
=
f
.
submit
_
(
'Create project'
),
class:
'btn
gl-button btn-success
w-100'
,
data:
{
track_label:
'blank_project'
,
track_event:
'click_button'
,
track_property:
'create_project'
,
track_value:
''
}
#import-project-pane
.tab-pane.import-project-pane.js-toggle-container
{
role:
'tabpanel'
}
-
if
import_sources_enabled?
...
...
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