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
bdca18fe
Commit
bdca18fe
authored
Jan 27, 2021
by
Yogi
Committed by
Kushal Pandya
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-button to new issues and MR page buttons
parent
e1c35852
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+4
-4
changelogs/unreleased/yo-gl-button-issuable-create-button.yml
...gelogs/unreleased/yo-gl-button-issuable-create-button.yml
+5
-0
No files found.
app/views/shared/issuable/_form.html.haml
View file @
bdca18fe
...
...
@@ -64,17 +64,17 @@
.row-content-block
{
class:
(
is_footer
?
"footer-block"
:
"middle-block"
)
}
.float-right
-
if
issuable
.
new_record?
=
link_to
'Cancel'
,
polymorphic_path
([
@project
,
issuable
.
class
]),
class:
'btn btn-cancel'
=
link_to
'Cancel'
,
polymorphic_path
([
@project
,
issuable
.
class
]),
class:
'
gl-button
btn btn-cancel'
-
else
-
if
can?
(
current_user
,
:"destroy_
#{
issuable
.
to_ability_name
}
"
,
@project
)
=
link_to
'Delete'
,
polymorphic_path
([
@project
,
issuable
],
params:
{
destroy_confirm:
true
}),
data:
{
confirm:
"
#{
issuable
.
human_class_name
}
will be removed! Are you sure?"
},
method: :delete
,
class:
'btn btn-danger btn-grouped'
=
link_to
'Cancel'
,
polymorphic_path
([
@project
,
issuable
]),
class:
'btn btn-grouped btn-cancel'
=
link_to
'Cancel'
,
polymorphic_path
([
@project
,
issuable
]),
class:
'
gl-button
btn btn-grouped btn-cancel'
%span
.gl-mr-3
-
if
issuable
.
new_record?
=
form
.
submit
"Submit
#{
issuable
.
class
.
model_name
.
human
.
downcase
}
"
,
class:
'btn btn-success qa-issuable-create-button'
=
form
.
submit
"Submit
#{
issuable
.
class
.
model_name
.
human
.
downcase
}
"
,
class:
'
gl-button
btn btn-success qa-issuable-create-button'
-
else
=
form
.
submit
'Save changes'
,
class:
'btn btn-success'
=
form
.
submit
'Save changes'
,
class:
'
gl-button
btn btn-success'
-
if
!
issuable
.
persisted?
&&
!
issuable
.
project
.
empty_repo?
&&
(
guide_url
=
issuable
.
project
.
present
.
contribution_guide_path
)
.inline.gl-mt-3
...
...
changelogs/unreleased/yo-gl-button-issuable-create-button.yml
0 → 100644
View file @
bdca18fe
---
title
:
Add gl-button to new issues and MR page
merge_request
:
51295
author
:
Yogi (@yo)
type
:
other
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