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
Léo-Paul Géneau
gitlab-ce
Commits
3440d909
Commit
3440d909
authored
Sep 05, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project metadata accessor
parent
81e0ebb4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/views/layouts/nav/projects_dropdown/_show.html.haml
app/views/layouts/nav/projects_dropdown/_show.html.haml
+2
-1
No files found.
app/views/layouts/nav/projects_dropdown/_show.html.haml
View file @
3440d909
-
project_meta
=
{
id:
@project
.
id
,
name:
@project
.
name
,
namespace:
@project
.
name_with_namespace
,
web_url:
@project
.
web_url
,
avatar_url:
@project
.
avatar_url
}
if
@project
&
.
persisted?
.projects-dropdown-container
.project-dropdown-sidebar
%ul
...
...
@@ -11,4 +12,4 @@
=
link_to
explore_root_path
do
=
_
(
'Explore projects'
)
.project-dropdown-content
#js-projects-dropdown
{
data:
{
user_name:
current_user
.
username
,
project:
({
id:
@project
.
id
,
name:
@project
.
name
,
namespace:
@project
.
name_with_namespace
,
web_url:
@project
.
web_url
,
avatar_url:
@project
.
avatar_url
}
if
@project
.
present?
)
}
}
#js-projects-dropdown
{
data:
{
user_name:
current_user
.
username
,
project:
project_meta
}
}
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