2012-01-12 07:04:57 +00:00
|
|
|
/ Page Header
|
2012-01-12 07:28:57 +00:00
|
|
|
%header.top_panel_holder
|
2012-04-10 05:51:08 +00:00
|
|
|
.container
|
2012-01-16 19:07:57 +00:00
|
|
|
.top_panel_content
|
2012-02-09 22:07:49 +00:00
|
|
|
%div.app_logo
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to root_path, class: "home", title: "Home" do
|
2012-06-03 22:37:27 +00:00
|
|
|
%h1
|
2012-02-28 20:59:36 +00:00
|
|
|
GITLAB
|
2012-04-22 13:01:59 +00:00
|
|
|
%span.separator
|
2012-02-09 07:59:14 +00:00
|
|
|
%h1.project_name= title
|
2012-03-15 23:14:39 +00:00
|
|
|
.search
|
2012-08-10 22:07:50 +00:00
|
|
|
= form_tag search_path, method: :get do |f|
|
|
|
|
= text_field_tag "search", nil, placeholder: "Search", class: "search-input"
|
2012-05-19 09:00:46 +00:00
|
|
|
.fbtn
|
|
|
|
- if current_user.is_admin?
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to admin_root_path, class: "btn small", title: "Admin area" do
|
2012-05-19 09:00:46 +00:00
|
|
|
%i.icon-cog
|
|
|
|
Admin
|
|
|
|
- if current_user.can_create_project?
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to new_project_path, class: "btn small", title: "Create New Project" do
|
2012-05-19 09:00:46 +00:00
|
|
|
%i.icon-plus
|
|
|
|
Project
|
2012-01-16 19:07:57 +00:00
|
|
|
.account-box
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to profile_path, class: "pic" do
|
2012-01-16 19:07:57 +00:00
|
|
|
= image_tag gravatar_icon(current_user.email)
|
|
|
|
.account-links
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to profile_path, class: "username" do
|
2012-01-16 19:07:57 +00:00
|
|
|
My profile
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to 'Logout', destroy_user_session_path, class: "logout", method: :delete
|
2012-02-09 07:59:14 +00:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
$("#search").autocomplete({
|
|
|
|
source: #{raw search_autocomplete_source},
|
|
|
|
select: function(event, ui) { location.href = ui.item.url }
|
|
|
|
});
|
|
|
|
});
|