gitlabhq/app/views/layouts/_head_panel.html.haml
2012-10-25 23:39:02 +02:00

30 lines
978 B
Plaintext

/ Page Header
%header.top_panel_holder
.container
.top_panel_content
%div.app_logo
= link_to root_path, class: "home", title: "Home" do
%h1
GITLAB
%span.separator
%h1.project_name= title
= render "layouts/search"
.fbtn
- if current_user.is_admin?
= link_to admin_root_path, class: "btn small", title: "Admin area" do
%i.icon-cog
Admin
- if current_user.can_create_project?
= link_to new_project_path, class: "btn small", title: "Create New Project" do
%i.icon-plus
Project
.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
My profile
= link_to 'Logout', destroy_user_session_path, class: "logout", method: :delete
= render "layouts/init_auto_complete"