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
Tatuya Kamada
gitlab-ce
Commits
5b64e486
Commit
5b64e486
authored
Jun 07, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added projectOptions and dashboardOptions into gl object.
parent
b13f6fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
app/views/layouts/_search.html.haml
app/views/layouts/_search.html.haml
+15
-0
No files found.
app/views/layouts/_search.html.haml
View file @
5b64e486
...
@@ -36,6 +36,21 @@
...
@@ -36,6 +36,21 @@
-
else
-
else
=
hidden_field_tag
:search_code
,
true
=
hidden_field_tag
:search_code
,
true
:javascript
gl
.
projectOptions
=
gl
.
projectOptions
||
{};
gl
.
projectOptions
[
"
#{
@project
.
path
}
"
]
=
{
issuesPath
:
"
#{
namespace_project_issues_path
(
@project
.
namespace
,
@project
)
}
"
,
mrPath
:
"
#{
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
)
}
"
,
projectName
:
"
#{
@project
.
name
}
"
};
:javascript
gl
.
dashboardOptions
=
{
issuesPath
:
"
#{
issues_dashboard_url
}
"
,
mrPath
:
"
#{
merge_requests_dashboard_url
}
"
};
-
if
@snippet
||
@snippets
-
if
@snippet
||
@snippets
=
hidden_field_tag
:snippets
,
true
=
hidden_field_tag
:snippets
,
true
=
hidden_field_tag
:repository_ref
,
@ref
=
hidden_field_tag
:repository_ref
,
@ref
...
...
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