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
Boxiang Sun
gitlab-ce
Commits
c1818eec
Commit
c1818eec
authored
Jun 09, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inject group options.
parent
cae84aa2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
app/views/layouts/_search.html.haml
app/views/layouts/_search.html.haml
+11
-1
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+1
-1
No files found.
app/views/layouts/_search.html.haml
View file @
c1818eec
...
@@ -41,9 +41,19 @@
...
@@ -41,9 +41,19 @@
gl
.
projectOptions
[
"
#{
@project
.
path
}
"
]
=
{
gl
.
projectOptions
[
"
#{
@project
.
path
}
"
]
=
{
issuesPath
:
"
#{
namespace_project_issues_path
(
@project
.
namespace
,
@project
)
}
"
,
issuesPath
:
"
#{
namespace_project_issues_path
(
@project
.
namespace
,
@project
)
}
"
,
mrPath
:
"
#{
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
)
}
"
,
mrPath
:
"
#{
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
)
}
"
,
projectN
ame
:
"
#{
@project
.
name
}
"
n
ame
:
"
#{
@project
.
name
}
"
};
};
-
if
@group
:javascript
gl
.
groupOptions
=
gl
.
groupOptions
||
{};
gl
.
groupOptions
[
"
#{
@group
.
path
}
"
]
=
{
name
:
"
#{
@group
.
name
}
"
,
issuesPath
:
"
#{
issues_group_path
(
@group
.
path
)
}
"
,
mrPath
:
"
#{
merge_requests_group_path
(
@group
.
path
)
}
"
};
:javascript
:javascript
gl
.
dashboardOptions
=
{
gl
.
dashboardOptions
=
{
issuesPath
:
"
#{
issues_dashboard_url
}
"
,
issuesPath
:
"
#{
issues_dashboard_url
}
"
,
...
...
app/views/layouts/application.html.haml
View file @
c1818eec
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
=
render
"layouts/head"
%body
{
class:
"#{user_application_theme}"
,
'data-page'
=>
body_data_page
,
'data-project'
=>
"#{@project.path if @project}"
}
%body
{
class:
"#{user_application_theme}"
,
data:
{
page:
body_data_page
,
project:
"#{@project.path if @project}"
,
group:
"#{@group.path if @group}"
}
}
=
Gon
::
Base
.
render_data
=
Gon
::
Base
.
render_data
-# Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body.
-# Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body.
...
...
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