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

55 lines
1.7 KiB
Plaintext
Raw Normal View History

<!-- Page Header -->
<header>
2011-11-03 23:37:02 +01:00
<h1 class="logo">
<a href="/">GITLAB</a>
</h1>
<div class="account-box">
<%= link_to profile_path, :class => "pic" do %>
<%= image_tag gravatar_icon(current_user.email) %>
<% end %>
<div class="account-links">
<%= link_to profile_path, :class => "username" do %>
2011-11-15 09:34:30 +01:00
<%#= current_user.name %>
2011-11-11 17:35:51 +01:00
My profile
2011-11-03 23:37:02 +01:00
<% end %>
<%= link_to 'Logout', destroy_user_session_path, :class => "logout", :method => :delete %>
2011-11-01 21:51:20 +01:00
</div>
2011-11-03 23:37:02 +01:00
</div><!-- .account-box -->
<div class="search">
<%= text_field_tag "search", nil, :placeholder => "Search", :class => "search-input" %>
</div>
<!-- .login-top -->
<nav>
<%= link_to dashboard_path, :class => current_page?(root_path) ? "current dashboard" : "dashboard" do %>
<span></span>Dashboard
<% end %>
<%= link_to projects_path, :class => current_page?(projects_path) ? "current project" : "project" do %>
<span></span>Projects
<% end %>
2011-11-02 21:14:03 +01:00
<%= link_to((current_user.is_admin? ? admin_root_path : "#"), :class => (admin_namespace? ? "current admin" : "admin")) do %>
<span></span>Admin
2011-11-02 21:14:03 +01:00
<% end %>
</nav>
2011-11-03 23:37:02 +01:00
</header>
<!-- eo Page Header -->
2011-10-08 23:36:38 +02:00
<% if current_user %>
<%= javascript_tag do %>
$(function() {
$("#search" ).autocomplete({
source: <%= raw search_autocomplete_source %>,
select: function(event, ui) { location.href = ui.item.url }
});
});
<% end %>
<% end %>
<% if current_user.keys.all.empty? %>
2011-11-17 20:30:57 +01:00
<div id="no_ssh_key_defined" class="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!
</div>
2011-11-11 17:04:32 +01:00
<% end %>