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
6007450c
Commit
6007450c
authored
Apr 23, 2020
by
Qingyu Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate db query in dashboard snippets
parent
fbf363a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
app/views/dashboard/snippets/index.html.haml
app/views/dashboard/snippets/index.html.haml
+0
-2
No files found.
app/views/dashboard/snippets/index.html.haml
View file @
6007450c
...
...
@@ -6,8 +6,6 @@
=
render
'dashboard/snippets_head'
-
if
current_user
.
snippets
.
exists?
=
render
partial:
'snippets/snippets_scope_menu'
,
locals:
{
include_private:
true
,
counts:
@snippet_counts
}
-
if
current_user
.
snippets
.
exists?
=
render
partial:
'shared/snippets/list'
,
locals:
{
link_project:
true
}
-
else
=
render
'shared/empty_states/snippets'
,
button_path:
button_path
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