gitlabhq/app/views/layouts/_head_panel.html.haml

36 lines
1.1 KiB
Plaintext
Raw Normal View History

%header.navbar.navbar-static-top.navbar-gitlab
.navbar-inner
.container
2012-02-09 23:07:49 +01:00
%div.app_logo
= link_to root_path, class: "home", title: "Home" do
%h1 GITLAB
2012-04-22 15:01:59 +02:00
%span.separator
%h1.project_name= title
%ul.nav
- if current_user.is_admin?
%li
= link_to admin_root_path, title: "Admin area" do
%i.icon-cog
Admin
- if current_user.can_create_project?
%li
= link_to new_project_path, title: "Create New Project" do
%i.icon-plus
Project
%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
= render "layouts/init_auto_complete"