Implemented bootstrap 2.2.1.1. Restyled header panel
This commit is contained in:
parent
236584c2f8
commit
942c410119
13 changed files with 134 additions and 233 deletions
|
@ -1,29 +1,35 @@
|
|||
/ Page Header
|
||||
%header.top_panel_holder
|
||||
.container
|
||||
.top_panel_content
|
||||
%header.navbar.navbar-static-top.navbar-gitlab
|
||||
.navbar-inner
|
||||
.container
|
||||
%div.app_logo
|
||||
= link_to root_path, class: "home", title: "Home" do
|
||||
%h1
|
||||
GITLAB
|
||||
%h1 GITLAB
|
||||
%span.separator
|
||||
%h1.project_name= title
|
||||
= render "layouts/search"
|
||||
.fbtn
|
||||
%ul.nav
|
||||
- if current_user.is_admin?
|
||||
= link_to admin_root_path, class: "btn small", title: "Admin area" do
|
||||
%i.icon-cog
|
||||
Admin
|
||||
%li
|
||||
= link_to admin_root_path, 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
|
||||
%li
|
||||
= link_to new_project_path, title: "Create New Project" do
|
||||
%i.icon-plus
|
||||
Project
|
||||
%li
|
||||
= render "layouts/search"
|
||||
%li
|
||||
.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
|
||||
%i.icon-user.icon-white
|
||||
My profile
|
||||
= link_to destroy_user_session_path, class: "logout", method: :delete do
|
||||
%i.icon-signout.icon-white
|
||||
Logout
|
||||
|
||||
|
||||
= render "layouts/init_auto_complete"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.search
|
||||
= form_tag search_path, method: :get do |f|
|
||||
= form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
|
||||
= text_field_tag "search", nil, placeholder: "Search", class: "search-input"
|
||||
|
||||
:javascript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue