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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
44df2012
Commit
44df2012
authored
Oct 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore dashboard snippets tabs.
parent
946f00ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
app/views/dashboard/snippets/index.html.haml
app/views/dashboard/snippets/index.html.haml
+22
-0
features/steps/snippets/user.rb
features/steps/snippets/user.rb
+3
-3
No files found.
app/views/dashboard/snippets/index.html.haml
View file @
44df2012
...
...
@@ -12,5 +12,27 @@
.oneline
Share code pastes with others out of git repository
%ul
.center-top-menu.no-top.no-bottom.snippet-scope-menu
=
nav_tab
:scope
,
nil
do
=
link_to
dashboard_snippets_path
do
All
%span
.badge
=
current_user
.
snippets
.
count
=
nav_tab
:scope
,
'are_private'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_private'
)
do
Private
%span
.badge
=
current_user
.
snippets
.
are_private
.
count
=
nav_tab
:scope
,
'are_internal'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_internal'
)
do
Internal
%span
.badge
=
current_user
.
snippets
.
are_internal
.
count
=
nav_tab
:scope
,
'are_public'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_public'
)
do
Public
%span
.badge
=
current_user
.
snippets
.
are_public
.
count
=
render
'snippets/snippets'
features/steps/snippets/user.rb
View file @
44df2012
...
...
@@ -32,19 +32,19 @@ class Spinach::Features::SnippetsUser < Spinach::FeatureSteps
end
step
'I click "Internal" filter'
do
page
.
within
(
'.
nav-tabs
'
)
do
page
.
within
(
'.
snippet-scope-menu
'
)
do
click_link
"Internal"
end
end
step
'I click "Private" filter'
do
page
.
within
(
'.
nav-tabs
'
)
do
page
.
within
(
'.
snippet-scope-menu
'
)
do
click_link
"Private"
end
end
step
'I click "Public" filter'
do
page
.
within
(
'.
nav-tabs
'
)
do
page
.
within
(
'.
snippet-scope-menu
'
)
do
click_link
"Public"
end
end
...
...
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