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
52cf36ad
Commit
52cf36ad
authored
Feb 11, 2021
by
Yogi
Committed by
Kushal Pandya
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add btn-icon class for icon only buttons in issues header
parent
d566a31e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/projects/issues/import_csv/_button.html.haml
app/views/projects/issues/import_csv/_button.html.haml
+1
-1
app/views/shared/issuable/_feed_buttons.html.haml
app/views/shared/issuable/_feed_buttons.html.haml
+2
-2
app/views/shared/issuable/csv_export/_button.html.haml
app/views/shared/issuable/csv_export/_button.html.haml
+1
-1
changelogs/unreleased/btn-icon-issues.yml
changelogs/unreleased/btn-icon-issues.yml
+5
-0
No files found.
app/views/projects/issues/import_csv/_button.html.haml
View file @
52cf36ad
...
...
@@ -2,7 +2,7 @@
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
.dropdown.btn-group
%button
.btn.gl-button.
btn-default.rounded-right
.text-center
{
class:
(
'has-tooltip'
if
type
==
:icon
),
title:
(
_
(
'Import issues'
)
if
type
==
:icon
),
%button
.btn.gl-button.
rounded-right.btn-default.btn-icon
.text-center
{
class:
(
'has-tooltip'
if
type
==
:icon
),
title:
(
_
(
'Import issues'
)
if
type
==
:icon
),
data:
{
toggle:
'dropdown'
,
qa_selector:
'import_issues_button'
},
'aria-label'
=>
_
(
'Import issues'
),
'aria-haspopup'
=>
'true'
,
'aria-expanded'
=>
'false'
}
-
if
type
==
:icon
=
sprite_icon
(
'import'
)
...
...
app/views/shared/issuable/_feed_buttons.html.haml
View file @
52cf36ad
=
link_to
safe_params
.
merge
(
rss_url_options
),
class:
'btn gl-button btn-default has-tooltip'
,
data:
{
container:
'body'
,
testid:
'rss-feed-link'
},
title:
_
(
'Subscribe to RSS feed'
)
do
=
link_to
safe_params
.
merge
(
rss_url_options
),
class:
'btn gl-button btn-default
btn-icon
has-tooltip'
,
data:
{
container:
'body'
,
testid:
'rss-feed-link'
},
title:
_
(
'Subscribe to RSS feed'
)
do
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
)
=
link_to
safe_params
.
merge
(
calendar_url_options
),
class:
'btn gl-button btn-default has-tooltip'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to calendar'
)
do
=
link_to
safe_params
.
merge
(
calendar_url_options
),
class:
'btn gl-button btn-default
btn-icon
has-tooltip'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to calendar'
)
do
=
sprite_icon
(
'calendar'
)
app/views/shared/issuable/csv_export/_button.html.haml
View file @
52cf36ad
-
if
current_user
%button
.csv_download_link.btn.gl-button.btn-default.has-tooltip
{
title:
_
(
'Export as CSV'
),
%button
.csv_download_link.btn.gl-button.btn-default.
btn-icon.
has-tooltip
{
title:
_
(
'Export as CSV'
),
data:
{
toggle:
'modal'
,
target:
".#{issuable_type}-export-modal"
,
qa_selector:
'export_as_csv_button'
}
}
=
sprite_icon
(
'export'
)
changelogs/unreleased/btn-icon-issues.yml
0 → 100644
View file @
52cf36ad
---
title
:
Add btn-icon class for icon only buttons in issues header
merge_request
:
53562
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