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
Kazuhiko Shiozaki
gitlab-ce
Commits
635c8611
Commit
635c8611
authored
Apr 30, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snippest sidebar when signed out.
parent
280a2124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
app/views/layouts/nav/_snippets.html.haml
app/views/layouts/nav/_snippets.html.haml
+6
-5
No files found.
app/views/layouts/nav/_snippets.html.haml
View file @
635c8611
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
(
path:
user_snippets_path
(
current_user
),
html_options:
{
class:
'home'
})
do
-
if
current_user
=
link_to
user_snippets_path
(
current_user
),
title:
'Your snippets'
,
data:
{
placement:
'right'
}
do
=
nav_link
(
path:
user_snippets_path
(
current_user
),
html_options:
{
class:
'home'
})
do
=
icon
(
'dashboard fw'
)
=
link_to
user_snippets_path
(
current_user
),
title:
'Your snippets'
,
data:
{
placement:
'right'
}
do
%span
=
icon
(
'dashboard fw'
)
Your Snippets
%span
Your Snippets
=
nav_link
(
path:
snippets_path
)
do
=
nav_link
(
path:
snippets_path
)
do
=
link_to
snippets_path
,
title:
'Discover snippets'
,
data:
{
placement:
'right'
}
do
=
link_to
snippets_path
,
title:
'Discover snippets'
,
data:
{
placement:
'right'
}
do
=
icon
(
'globe fw'
)
=
icon
(
'globe fw'
)
...
...
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