_head_panel.html.haml 2.38 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
%header.navbar.navbar-fixed-top.navbar-gitlab
2 3
  .navbar-inner
    .container
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4
      %div.app_logo
5
        = link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
6
          = brand_header_logo
7
          %h3 GitLab
8
      %h1.title= title
9

10 11
      %button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"}
        %span.sr-only Toggle navigation
12
        %i.fa.fa-bars
13

14 15
      .navbar-collapse.collapse
        %ul.nav.navbar-nav
16
          %li.hidden-sm.hidden-xs
17
            = render "layouts/search"
18
          %li.visible-sm.visible-xs
19
            = link_to search_path, title: "Search", class: 'has_bottom_tooltip', 'data-original-title' => 'Search area' do
20
              %i.fa.fa-search
Ciro Santilli's avatar
Ciro Santilli committed
21 22 23
          %li
            = link_to help_path, title: 'Help', class: 'has_bottom_tooltip',
               'data-original-title' => 'Help'  do
24
              %i.fa.fa-question-circle
25
          %li
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
26
            = link_to explore_root_path, title: "Explore", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
27
              %i.fa.fa-globe
28
          %li
29
            = link_to user_snippets_path(current_user), title: "Your snippets", class: 'has_bottom_tooltip', 'data-original-title' => 'Your snippets' do
30
              %i.fa.fa-clipboard
31 32 33
          - if current_user.is_admin?
            %li
              = link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do
34
                %i.fa.fa-cogs
35 36 37
          - if current_user.can_create_project?
            %li
              = link_to new_project_path, title: "New project", class: 'has_bottom_tooltip', 'data-original-title' => 'New project'  do
38
                %i.fa.fa-plus
39 40
          %li
            = link_to profile_path, title: "Profile settings", class: 'has_bottom_tooltip', 'data-original-title' => 'Profile settings"'  do
41
              %i.fa.fa-user
42
          %li
43
            = link_to destroy_user_session_path, class: "logout", method: :delete, title: "Sign out", class: 'has_bottom_tooltip', 'data-original-title' => 'Sign out'  do
44
              %i.fa.fa-sign-out
45
          %li.hidden-xs
Sabba Petri's avatar
Sabba Petri committed
46
            = link_to current_user, class: "profile-pic has_bottom_tooltip", id: 'profile-pic', 'data-original-title' => 'Your profile' do
47
              = image_tag avatar_icon(current_user.email, 60), alt: 'User activity'
48 49

= render 'shared/outdated_browser'