user dropdown
This commit is contained in:
parent
adbe5f7c38
commit
7611bc1c8f
2 changed files with 54 additions and 21 deletions
|
|
@ -44,15 +44,17 @@
|
||||||
%span.sub_text
|
%span.sub_text
|
||||||
PREVIEW
|
PREVIEW
|
||||||
|
|
||||||
#session_action
|
#global_search
|
||||||
%ul
|
= form_tag(people_path, :method => 'get') do
|
||||||
%li#global_search
|
= text_field_tag 'q', nil, :placeholder => "Search", :type => 'search', :results => 5
|
||||||
= form_tag(people_path, :method => 'get') do
|
|
||||||
= text_field_tag 'q', nil, :placeholder => "Search", :type => 'search', :results => 5
|
|
||||||
|
|
||||||
%li= link_to current_user.real_name, current_user.person
|
%ul#user_menu
|
||||||
%li= link_to "settings", edit_user_path(current_user)
|
.avatar
|
||||||
%li= link_to t('.logout.'), destroy_user_session_path
|
= owner_image_tag
|
||||||
|
= link_to current_user.real_name, '#'
|
||||||
|
%li= link_to "profile", current_user.person
|
||||||
|
%li= link_to "settings", edit_user_path(current_user)
|
||||||
|
%li= link_to t('.logout.'), destroy_user_session_path
|
||||||
|
|
||||||
= render "shared/aspect_nav"
|
= render "shared/aspect_nav"
|
||||||
= render "shared/sub_header"
|
= render "shared/sub_header"
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ header
|
||||||
|
|
||||||
a
|
a
|
||||||
:color #CCC
|
:color #CCC
|
||||||
|
:text-shadow 0 1px 0 #444
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
:background none
|
:background none
|
||||||
|
|
@ -128,28 +129,58 @@ header
|
||||||
:border none
|
:border none
|
||||||
:color #fff
|
:color #fff
|
||||||
|
|
||||||
#session_action
|
ul#user_menu
|
||||||
|
:z-index 10
|
||||||
|
:font
|
||||||
|
:size 14px
|
||||||
|
:padding 5px 10px
|
||||||
|
:left 40px
|
||||||
|
:margin 0
|
||||||
|
:top -2px
|
||||||
|
:right -5px
|
||||||
|
|
||||||
:position absolute
|
:position absolute
|
||||||
:display inline
|
:display inline
|
||||||
|
|
||||||
:top 0
|
:top 0
|
||||||
:right 0
|
:right 0
|
||||||
|
|
||||||
ul
|
:list
|
||||||
:list
|
:style none
|
||||||
:style none
|
|
||||||
:padding 0
|
|
||||||
:margin 0
|
|
||||||
:display inline
|
|
||||||
|
|
||||||
|
li
|
||||||
|
:display none
|
||||||
|
|
||||||
|
a
|
||||||
|
:display block
|
||||||
|
|
||||||
|
&:hover
|
||||||
li
|
li
|
||||||
:display inline
|
:display block
|
||||||
:margin
|
|
||||||
:right 1em
|
|
||||||
|
|
||||||
&:last-child
|
&:hover
|
||||||
:margin
|
:margin
|
||||||
:right 0
|
:top -3px
|
||||||
|
:right -6px
|
||||||
|
:background
|
||||||
|
:color #333
|
||||||
|
:border 1px solid #999
|
||||||
|
|
||||||
|
:box-shadow 0 1px 2px #333
|
||||||
|
:-webkit-box-shadow 0 1px 2px #333
|
||||||
|
:-moz-box-shadow 0 1px 2px #333
|
||||||
|
|
||||||
|
.avatar
|
||||||
|
:height 20px
|
||||||
|
:width 20px
|
||||||
|
:position absolute
|
||||||
|
:left 5px
|
||||||
|
:display block
|
||||||
|
|
||||||
|
|
||||||
|
#global_search
|
||||||
|
:margin
|
||||||
|
:left 400px
|
||||||
|
|
||||||
#aspect_header
|
#aspect_header
|
||||||
:-webkit-box-shadow 0px -4px 6px -2px #777
|
:-webkit-box-shadow 0px -4px 6px -2px #777
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue