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