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
730ff2e5
Commit
730ff2e5
authored
Dec 09, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename snippets_path helper due to conflict
parent
dccd53e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/helpers/snippets_helper.rb
app/helpers/snippets_helper.rb
+1
-1
app/views/snippets/_snippets_scope_menu.html.haml
app/views/snippets/_snippets_scope_menu.html.haml
+4
-4
No files found.
app/helpers/snippets_helper.rb
View file @
730ff2e5
...
...
@@ -11,7 +11,7 @@ module SnippetsHelper
# Return the path of a snippets index for a user or for a project
#
# @returns String, path to snippet index
def
snippets_path
(
subject
=
nil
,
opts
=
nil
)
def
s
ubject_s
nippets_path
(
subject
=
nil
,
opts
=
nil
)
if
subject
.
is_a?
(
Project
)
namespace_project_snippets_path
(
subject
.
namespace
,
subject
,
opts
)
else
# assume subject === User
...
...
app/views/snippets/_snippets_scope_menu.html.haml
View file @
730ff2e5
...
...
@@ -3,7 +3,7 @@
.nav-links.snippet-scope-menu
%li
{
class:
(
"active"
unless
params
[
:scope
])
}
=
link_to
snippets_path
(
subject
)
do
=
link_to
s
ubject_s
nippets_path
(
subject
)
do
All
%span
.badge
-
if
include_private
...
...
@@ -13,19 +13,19 @@
-
if
include_private
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_private"
)
}
=
link_to
snippets_path
(
subject
,
scope:
'are_private'
)
do
=
link_to
s
ubject_s
nippets_path
(
subject
,
scope:
'are_private'
)
do
Private
%span
.badge
=
subject
.
snippets
.
are_private
.
count
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_internal"
)
}
=
link_to
snippets_path
(
subject
,
scope:
'are_internal'
)
do
=
link_to
s
ubject_s
nippets_path
(
subject
,
scope:
'are_internal'
)
do
Internal
%span
.badge
=
subject
.
snippets
.
are_internal
.
count
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_public"
)
}
=
link_to
snippets_path
(
subject
,
scope:
'are_public'
)
do
=
link_to
s
ubject_s
nippets_path
(
subject
,
scope:
'are_public'
)
do
Public
%span
.badge
=
subject
.
snippets
.
are_public
.
count
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