/ Page Header %header - if @project && !@project.new_record? .project_name = truncate @project.name, :length => 20 .git_url_wrapper %input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo, :class => "one_click_select"} = yield :rss_icon - if @project.repo_exists? .left{:style => "margin-left:5px;"} = render :partial => "projects/refs", :locals => { :destination => controller.controller_name == "commits" ? "commits" : "tree" } .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 / .account-box -#.search = text_field_tag "search", nil, :placeholder => "Search", :class => "search-input" / .login-top - 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!