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

52 lines
2.4 KiB
Plaintext
Raw Normal View History

2012-01-12 08:04:57 +01:00
/ Page Header
2012-01-12 08:28:57 +01:00
%header.top_panel_holder
2012-01-15 18:42:20 +01:00
.wrapper
2012-01-16 20:07:57 +01:00
.top_panel_content
%div.main_links
= link_to root_path, :class => "home", :title => "Home" do
2012-01-19 20:00:50 +01:00
= image_tag "logo.png", :width => 100
2012-01-12 08:28:57 +01:00
2012-01-16 20:07:57 +01:00
- if project_layout
.project_name
= truncate @project.name, :length => 28
.git_url_wrapper
%input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo, :class => "one_click_select"}
- if @project.repo_exists?
.left{:style => "margin-left:5px;"}
= render :partial => "projects/refs", :locals => { :destination => controller.controller_name == "commits" ? "commits" : "tree" }
= yield :rss_icon
2012-01-13 22:13:44 +01:00
- else
2012-01-16 20:07:57 +01:00
.dashboard_links
= link_to "Activities", dashboard_path, :class => "#{"active" if current_page?(dashboard_path) || current_page?(root_path) }"
2012-01-19 21:18:15 +01:00
= link_to "Projects", projects_path, :class => "#{"active" if current_page?(projects_path)}"
2012-01-16 20:07:57 +01:00
= link_to "Issues", dashboard_issues_path, :class => "#{"active" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
= link_to "Requests", dashboard_merge_requests_path, :class => "#{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
- if current_user.is_admin?
= link_to admin_root_path, :class => "admin", :title => "Admin" do
Admin
= link_to "Help", help_path, :class => "#{"active" if controller.controller_name == "help"}"
2012-01-16 20:07:57 +01:00
.search
= text_field_tag "search", nil, :placeholder => "Search", :class => "search-input"
2012-01-12 08:04:57 +01:00
2012-01-16 20:07:57 +01:00
.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
- if current_user
= javascript_tag do
$(function(){
$("#search").autocomplete({
source: #{raw search_autocomplete_source},
select: function(event, ui) { location.href = ui.item.url }
});
});
-#- if current_user.require_ssh_key?
#no_ssh_key_defined.big-message.error
%p
No SSH Key is defined. You won't be able to use any Git command!. Click #{link_to( 'here', keys_path )} to add one!