Merge remote-tracking branch 'origin/szzh' into szzh
This commit is contained in:
commit
4b1153d0a5
|
@ -81,8 +81,8 @@
|
||||||
<div class="navHomepageProfile">
|
<div class="navHomepageProfile">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="homepageProfileMenuIcon">
|
<li class="homepageProfileMenuIcon">
|
||||||
<%= link_to "<div class='mt5 mb8'>#{image_tag(url_to_avatar(User.current),:width =>"40",:height => "40",:class => "portraitRadius",:alt=>"头像", :id => "nh_user_logo")}</div>".html_safe,user_activities_path(User.current.id)%>
|
<%= link_to "<div class='mt5 mb8' id='user_avatar'>#{image_tag(url_to_avatar(User.current),:width =>"40",:height => "40",:class => "portraitRadius",:alt=>"头像", :id => "nh_user_logo")}</div>".html_safe,user_activities_path(User.current.id)%>
|
||||||
<ul class="topnav_login_list">
|
<ul class="topnav_login_list" id="topnav_login_list">
|
||||||
<li>
|
<li>
|
||||||
<%= link_to "修改资料", my_account_path, :class => "menuGrey"%>
|
<%= link_to "修改资料", my_account_path, :class => "menuGrey"%>
|
||||||
</li>
|
</li>
|
||||||
|
@ -110,6 +110,12 @@
|
||||||
$("#navHomepageSearchType").hide();
|
$("#navHomepageSearchType").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#user_avatar").mouseover(function(){
|
||||||
|
$("#topnav_login_list").show();
|
||||||
|
}).mouseout(function(){
|
||||||
|
$("#topnav_login_list").hide();
|
||||||
|
});
|
||||||
|
|
||||||
function signout(){
|
function signout(){
|
||||||
$.post(
|
$.post(
|
||||||
'<%= signout_path%>',
|
'<%= signout_path%>',
|
||||||
|
|
|
@ -18,8 +18,6 @@ a.homepageSearchIcon:hover {background:url(../images/nav_icon.png) -49px 3px no-
|
||||||
.navHomepageProfile {width:65px; display:block; float:right; margin-left:33px;}
|
.navHomepageProfile {width:65px; display:block; float:right; margin-left:33px;}
|
||||||
.homepageProfileMenuIcon {background:url(../images/nav_icon.png) 30px -155px no-repeat; width:65px; height:54px; position:relative; display:inline-block;}
|
.homepageProfileMenuIcon {background:url(../images/nav_icon.png) 30px -155px no-repeat; width:65px; height:54px; position:relative; display:inline-block;}
|
||||||
.homepageProfileMenuIcon:hover {background:url(../images/nav_icon.png) 30px -122px no-repeat;}
|
.homepageProfileMenuIcon:hover {background:url(../images/nav_icon.png) 30px -122px no-repeat;}
|
||||||
.navHomepageProfile ul li ul {display:none;}
|
|
||||||
.navHomepageProfile ul li:hover ul {display:block;}
|
|
||||||
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
|
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
|
||||||
.homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;}
|
.homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;}
|
||||||
.homepagePortraitContainer {width:238px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding-bottom:15px;}
|
.homepagePortraitContainer {width:238px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding-bottom:15px;}
|
||||||
|
@ -90,7 +88,7 @@ li.menuArrow:hover {background:url(../images/item.png) -20px -70px no-repeat;}
|
||||||
a.topnav_login_box:hover {color:#a1ebff;}
|
a.topnav_login_box:hover {color:#a1ebff;}
|
||||||
.navRow1 {margin:0; padding:0;}
|
.navRow1 {margin:0; padding:0;}
|
||||||
.navRow2 {margin:0; padding:0;}
|
.navRow2 {margin:0; padding:0;}
|
||||||
.topnav_login_list{ border:1px solid #15bccf; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-7px; position:absolute; z-index:9999; line-height:2;margin-top: -5px;}
|
.topnav_login_list{diaplay:none; border:1px solid #15bccf; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-7px; position:absolute; z-index:9999; line-height:2;margin-top: -5px;}
|
||||||
.topnav_login_list a{color:#15bccf;}
|
.topnav_login_list a{color:#15bccf;}
|
||||||
.topnav_login_list li{ }
|
.topnav_login_list li{ }
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,7 @@ li.menuArrow:hover {background:url(../images/item.png) -20px -70px no-repeat;}
|
||||||
a.topnav_login_box:hover {color:#a1ebff;}
|
a.topnav_login_box:hover {color:#a1ebff;}
|
||||||
.navRow1 {margin:0; padding:0;}
|
.navRow1 {margin:0; padding:0;}
|
||||||
.navRow2 {margin:0; padding:0;}
|
.navRow2 {margin:0; padding:0;}
|
||||||
.topnav_login_list{ border:1px solid #269ac9; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-7px; position:absolute; z-index:9999; line-height:2;}
|
.topnav_login_list{display: none; border:1px solid #269ac9; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-7px; position:absolute; z-index:9999; line-height:2;}
|
||||||
.topnav_login_list a{color:#269ac9;}
|
.topnav_login_list a{color:#269ac9;}
|
||||||
.topnav_login_list li{ }
|
.topnav_login_list li{ }
|
||||||
|
|
||||||
|
@ -462,8 +462,6 @@ a.homepageSearchIcon:hover {background:url(../images/nav_icon.png) -49px 3px no-
|
||||||
.portraitRadius {border-radius: 3px;}
|
.portraitRadius {border-radius: 3px;}
|
||||||
.homepageProfileMenuIcon {background:url(../images/nav_icon.png) 30px -155px no-repeat; width:65px; height:54px; position:relative; display:inline-block;}
|
.homepageProfileMenuIcon {background:url(../images/nav_icon.png) 30px -155px no-repeat; width:65px; height:54px; position:relative; display:inline-block;}
|
||||||
.homepageProfileMenuIcon:hover {background:url(../images/nav_icon.png) 30px -122px no-repeat;}
|
.homepageProfileMenuIcon:hover {background:url(../images/nav_icon.png) 30px -122px no-repeat;}
|
||||||
.navHomepageProfile ul li ul {display:none;}
|
|
||||||
.navHomepageProfile ul li:hover ul {display:block;}
|
|
||||||
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
|
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
|
||||||
.homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;}
|
.homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;}
|
||||||
.homepagePortraitContainer {width:208px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding:15px;}
|
.homepagePortraitContainer {width:208px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding:15px;}
|
||||||
|
|
Loading…
Reference in New Issue