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
3a50f5d2
Commit
3a50f5d2
authored
Jul 22, 2020
by
Martin Wortschack
Committed by
Olena Horal-Koretska
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace arrow icons in notes
parent
ba4c2b16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+5
-4
app/views/shared/notes/_note.html.haml
app/views/shared/notes/_note.html.haml
+2
-1
changelogs/unreleased/225893-replace-fa-angle-up-icons-with-gitlab-svg-angle-up-icon-2.yml
...ace-fa-angle-up-icons-with-gitlab-svg-angle-up-icon-2.yml
+5
-0
No files found.
app/assets/javascripts/notes.js
View file @
3a50f5d2
...
...
@@ -1336,11 +1336,12 @@ export default class Notes {
toggleCommitList
(
e
)
{
const
$element
=
$
(
e
.
currentTarget
);
const
$closestSystemCommitList
=
$element
.
siblings
(
'
.system-note-commit-list
'
);
const
$svgChevronUpElement
=
$element
.
find
(
'
svg.js-chevron-up
'
);
const
$svgChevronDownElement
=
$element
.
find
(
'
svg.js-chevron-down
'
);
$svgChevronUpElement
.
toggleClass
(
'
gl-display-none
'
);
$svgChevronDownElement
.
toggleClass
(
'
gl-display-none
'
);
$element
.
find
(
'
.fa
'
)
.
toggleClass
(
'
fa-angle-down
'
)
.
toggleClass
(
'
fa-angle-up
'
);
$closestSystemCommitList
.
toggleClass
(
'
hide-shade
'
);
}
...
...
app/views/shared/notes/_note.html.haml
View file @
3a50f5d2
...
...
@@ -63,7 +63,8 @@
-
if
note
.
system
.system-note-commit-list-toggler.hide
=
_
(
"Toggle commit list"
)
%i
.fa.fa-angle-down
=
sprite_icon
(
'chevron-down'
,
size:
16
,
css_class:
'js-chevron-down gl-ml-1 gl-vertical-align-text-bottom'
)
=
sprite_icon
(
'chevron-up'
,
size:
16
,
css_class:
'js-chevron-up gl-ml-1 gl-vertical-align-text-bottom gl-display-none'
)
-
if
note
.
attachment
.
url
.note-attachment
-
if
note
.
attachment
.
image?
...
...
changelogs/unreleased/225893-replace-fa-angle-up-icons-with-gitlab-svg-angle-up-icon-2.yml
0 → 100644
View file @
3a50f5d2
---
title
:
Replace fa-angle-up icons with GitLab SVG
merge_request
:
36429
author
:
type
:
changed
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