2012-11-20 22:05:15 +01:00
|
|
|
%header.navbar.navbar-static-top.navbar-gitlab
|
|
|
|
.navbar-inner
|
|
|
|
.container
|
2012-02-09 23:07:49 +01:00
|
|
|
%div.app_logo
|
2012-12-24 20:18:23 +01:00
|
|
|
%span.separator
|
2012-12-24 13:24:45 +01:00
|
|
|
= link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
|
2012-11-20 22:05:15 +01:00
|
|
|
%h1 GITLAB
|
2012-12-24 20:18:23 +01:00
|
|
|
%span.separator
|
2012-02-09 08:59:14 +01:00
|
|
|
%h1.project_name= title
|
2012-11-20 22:05:15 +01:00
|
|
|
%ul.nav
|
2012-05-19 11:00:46 +02:00
|
|
|
- if current_user.is_admin?
|
2012-11-20 22:05:15 +01:00
|
|
|
%li
|
2012-11-21 06:14:05 +01:00
|
|
|
= link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do
|
|
|
|
%i.icon-cogs
|
2012-05-19 11:00:46 +02:00
|
|
|
- if current_user.can_create_project?
|
2012-11-20 22:05:15 +01:00
|
|
|
%li
|
2012-11-21 06:14:05 +01:00
|
|
|
= link_to new_project_path, title: "Create New Project", class: 'has_bottom_tooltip', 'data-original-title' => 'New project' do
|
2012-11-20 22:05:15 +01:00
|
|
|
%i.icon-plus
|
2012-11-21 06:14:05 +01:00
|
|
|
%li
|
2013-01-24 16:47:09 +01:00
|
|
|
= link_to profile_path, title: "My Profile", class: 'has_bottom_tooltip', 'data-original-title' => 'Your profile' do
|
2012-11-21 06:14:05 +01:00
|
|
|
%i.icon-user
|
2012-11-28 17:08:25 +01:00
|
|
|
%li.separator
|
2012-11-20 22:05:15 +01:00
|
|
|
%li
|
|
|
|
= render "layouts/search"
|
|
|
|
%li
|
|
|
|
.account-box
|
|
|
|
= link_to profile_path, class: "pic" do
|
|
|
|
= image_tag gravatar_icon(current_user.email)
|
|
|
|
.account-links
|
|
|
|
= link_to profile_path, class: "username" do
|
|
|
|
%i.icon-user.icon-white
|
|
|
|
My profile
|
|
|
|
= link_to destroy_user_session_path, class: "logout", method: :delete do
|
|
|
|
%i.icon-signout.icon-white
|
|
|
|
Logout
|
|
|
|
|
2012-02-09 08:59:14 +01:00
|
|
|
|
2012-10-10 00:16:52 +02:00
|
|
|
= render "layouts/init_auto_complete"
|