summaryrefslogtreecommitdiff
path: root/app/views/layouts/_search.html.haml
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-06-09 04:21:35 +0300
committerFatih Acet <acetfatih@gmail.com>2016-06-09 04:21:35 +0300
commitc1818eec1d10688c05467a900f60259490b627c1 (patch)
tree948e98b1a1dcd6e58bdadea7eb9ad54117173f59 /app/views/layouts/_search.html.haml
parentcae84aa2788af60219bbca1a83ae63941f11bf47 (diff)
downloadgitlab-ce-c1818eec1d10688c05467a900f60259490b627c1.tar.gz
Inject group options.
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r--app/views/layouts/_search.html.haml12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index b76e31f7dc8..5c6429d07b4 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -41,9 +41,19 @@
gl.projectOptions["#{@project.path}"] = {
issuesPath: "#{namespace_project_issues_path(@project.namespace, @project)}",
mrPath: "#{namespace_project_merge_requests_path(@project.namespace, @project)}",
- projectName: "#{@project.name}"
+ name: "#{@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
gl.dashboardOptions = {
issuesPath: "#{issues_dashboard_url}",