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
6406bacc
Commit
6406bacc
authored
Mar 12, 2021
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove jQuery from admin labels:destroy action
parent
2827e75f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/views/admin/labels/destroy.js.haml
app/views/admin/labels/destroy.js.haml
+2
-1
app/views/admin/labels/index.html.haml
app/views/admin/labels/index.html.haml
+3
-2
No files found.
app/views/admin/labels/destroy.js.haml
View file @
6406bacc
-
if
@labels
.
size
==
0
$('.labels').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)
var emptyState = document.querySelector('.labels .nothing-here-block.hidden');
if (emptyState) emptyState.classList.remove('hidden');
app/views/admin/labels/index.html.haml
View file @
6406bacc
...
...
@@ -13,5 +13,6 @@
=
render
@labels
=
paginate
@labels
,
theme:
'gitlab'
-
else
.nothing-here-block
=
_
(
'There are no labels yet'
)
.nothing-here-block
{
class:
(
'hidden'
if
@labels
.
present?
)
}
=
_
(
'There are no labels yet'
)
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