summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-04-12 17:50:27 +0000
committerJacob Schatz <jschatz1@gmail.com>2016-04-12 17:50:27 +0000
commit2c9894d457cac2f15331081a4f6974e0803fead3 (patch)
tree4c5d4c344b963baca94657a0a7bd4616c2d2251c /app/views
parent6f4b4fd901d854cf6d06dcdd91d98d0512a9ec39 (diff)
parent1ac6bdb5c85f14557ed41b5b81d6ee9d577739a1 (diff)
downloadgitlab-ce-2c9894d457cac2f15331081a4f6974e0803fead3.tar.gz
Merge branch 'project-title-dropdown' into 'master'
Project dropdown in header uses new dropdown See merge request !3339
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/header/_default.html.haml2
-rw-r--r--app/views/layouts/project.html.haml8
2 files changed, 10 insertions, 0 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml
index 0f3b8119379..44339293095 100644
--- a/app/views/layouts/header/_default.html.haml
+++ b/app/views/layouts/header/_default.html.haml
@@ -45,6 +45,8 @@
%h1.title= title
+ = yield :header_content
+
= render 'shared/outdated_browser'
- if @project && !@project.empty_repo?
diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml
index a7ef31acd3d..6dfe7fbdae8 100644
--- a/app/views/layouts/project.html.haml
+++ b/app/views/layouts/project.html.haml
@@ -17,4 +17,12 @@
- content_for :scripts_body do
= render "layouts/init_auto_complete" if current_user
+- content_for :header_content do
+ .js-dropdown-menu-projects
+ .dropdown-menu.dropdown-select.dropdown-menu-projects
+ = dropdown_title("Go to a project")
+ = dropdown_filter("Search your projects")
+ = dropdown_content
+ = dropdown_loading
+
= render template: "layouts/application"