BigW Consortium Gitlab

_head_panel.html.haml 2.28 KB
Newer Older
1 2 3
%header.navbar.navbar-static-top.navbar-gitlab
  .navbar-inner
    .container
Dmitriy Zaporozhets committed
4
      %div.app_logo
5
        %span.separator
6
        = link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
7
          %h1 GITLAB
8
        %span.separator
9
      %h1.title= title
10

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

15 16
      .navbar-collapse.collapse
        %ul.nav.navbar-nav
17
          %li.hidden-sm.hidden-xs
18
            = render "layouts/search"
19
          %li.visible-sm.visible-xs
20 21
            = link_to search_path, title: "Search", class: 'has_bottom_tooltip', 'data-original-title' => 'Search area' do
              %i.icon-search
Ciro Santilli committed
22 23 24
          %li
            = link_to help_path, title: 'Help', class: 'has_bottom_tooltip',
               'data-original-title' => 'Help'  do
25
              %i.icon-question-sign
26
          %li
27 28 29
            = link_to public_root_path, title: "Public area", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
              %i.icon-globe
          %li
30
            = link_to user_snippets_path(current_user), title: "My snippets", class: 'has_bottom_tooltip', 'data-original-title' => 'My snippets' do
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
              %i.icon-paste
          - if current_user.is_admin?
            %li
              = link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do
                %i.icon-cogs
          - 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
                %i.icon-plus
          %li
            = link_to profile_path, title: "Profile settings", class: 'has_bottom_tooltip', 'data-original-title' => 'Profile settings"'  do
              %i.icon-user
          %li
            = link_to destroy_user_session_path, class: "logout", method: :delete, title: "Logout", class: 'has_bottom_tooltip', 'data-original-title' => 'Logout'  do
              %i.icon-signout
46
          %li.hidden-xs
47 48
            = link_to current_user, class: "profile-pic", id: 'profile-pic' do
              = image_tag avatar_icon(current_user.email, 26), alt: 'User activity'