2012-11-20 16:05:15 -05:00
|
|
|
%header.navbar.navbar-static-top.navbar-gitlab
|
|
|
|
.navbar-inner
|
|
|
|
.container
|
2012-02-09 17:07:49 -05:00
|
|
|
%div.app_logo
|
2012-12-24 14:18:23 -05:00
|
|
|
%span.separator
|
2012-12-24 07:24:45 -05:00
|
|
|
= link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
|
2012-11-20 16:05:15 -05:00
|
|
|
%h1 GITLAB
|
2012-12-24 14:18:23 -05:00
|
|
|
%span.separator
|
2012-02-09 02:59:14 -05:00
|
|
|
%h1.project_name= title
|
2012-11-20 16:05:15 -05:00
|
|
|
%ul.nav
|
2013-04-29 03:10:45 -04:00
|
|
|
%li
|
|
|
|
%a
|
|
|
|
%div.hide.turbolink-spinner
|
|
|
|
%i.icon-refresh.icon-spin
|
2013-04-29 07:36:40 -04:00
|
|
|
Loading...
|
2013-03-15 09:39:47 -04:00
|
|
|
%li
|
|
|
|
= render "layouts/search"
|
2013-03-04 13:11:23 -05:00
|
|
|
%li
|
|
|
|
= link_to public_root_path, title: "Public area", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
|
|
|
|
%i.icon-globe
|
2013-06-04 11:50:42 -04:00
|
|
|
%li
|
2013-06-05 15:25:27 -04:00
|
|
|
= link_to user_snippets_path(current_user), title: "My snippets", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
|
2013-06-04 11:50:42 -04:00
|
|
|
%i.icon-paste
|
2012-05-19 05:00:46 -04:00
|
|
|
- if current_user.is_admin?
|
2012-11-20 16:05:15 -05:00
|
|
|
%li
|
2012-11-21 00:14:05 -05: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 05:00:46 -04:00
|
|
|
- if current_user.can_create_project?
|
2012-11-20 16:05:15 -05:00
|
|
|
%li
|
2012-11-21 00:14:05 -05:00
|
|
|
= link_to new_project_path, title: "Create New Project", class: 'has_bottom_tooltip', 'data-original-title' => 'New project' do
|
2012-11-20 16:05:15 -05:00
|
|
|
%i.icon-plus
|
2012-11-21 00:14:05 -05:00
|
|
|
%li
|
2013-01-24 10:47:09 -05:00
|
|
|
= link_to profile_path, title: "My Profile", class: 'has_bottom_tooltip', 'data-original-title' => 'Your profile' do
|
2012-11-21 00:14:05 -05:00
|
|
|
%i.icon-user
|
2012-11-20 16:05:15 -05:00
|
|
|
%li
|
2013-03-15 09:39:47 -04:00
|
|
|
= link_to destroy_user_session_path, class: "logout", method: :delete, title: "Logout", class: 'has_bottom_tooltip', 'data-original-title' => 'Logout' do
|
|
|
|
%i.icon-signout
|
2012-11-20 16:05:15 -05:00
|
|
|
%li
|
2013-06-26 14:50:47 -04:00
|
|
|
= link_to current_user, class: "profile-pic", id: 'profile-pic' do
|
2013-07-02 04:47:09 -04:00
|
|
|
= image_tag gravatar_icon(current_user.email, 26), alt: ''
|