diff --git a/app/views/layouts/_course_base_info.html.erb b/app/views/layouts/_course_base_info.html.erb index c1c977462..4664e6f41 100644 --- a/app/views/layouts/_course_base_info.html.erb +++ b/app/views/layouts/_course_base_info.html.erb @@ -30,11 +30,14 @@

邀 请 码
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 1fcef7327..289b888fd 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -50,11 +50,14 @@

<%= l(:label_project_ivite_code)%> diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index d05850a56..b5643982d 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -103,7 +103,10 @@
<% if User.current.logged?%> +
<%=link_to image_tag(url_to_avatar(@user),width:"74", height: "74", :id=>'nh_source_tx'), my_clear_user_avatar_temp_path, :class => "user_leftinfo_img", :remote => true%> +
+
<% else %> <% end %> diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 504fea3cb..95f939ea4 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -2099,3 +2099,15 @@ function throttle_me(method, context, e, condition, url){ },500); } +//头像、logo编辑图标显隐 +function edit_img(){ + $(".homepageEditProfile").parent().mouseover(function(){ + $(".homepageEditProfile").show(); + }); + $(".homepageEditProfile").parent().mouseout(function(){ + $(".homepageEditProfile").hide(); + }); +} + +$(document).ready(edit_img); +