diff --git a/app/views/layouts/_course_base_info.html.erb b/app/views/layouts/_course_base_info.html.erb index 96edea2f3..566364bc4 100644 --- a/app/views/layouts/_course_base_info.html.erb +++ b/app/views/layouts/_course_base_info.html.erb @@ -30,7 +30,10 @@

邀 请 码
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index e7b23b3b5..b606fefbd 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -50,7 +50,10 @@

<%= 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 46cd43ecf..e41db07bc 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_user_tx'), my_clear_user_avatar_temp_path, :class => "user_leftinfo_img", :remote => true%> +
+ <%=link_to image_tag(url_to_avatar(@user),width:"74", height: "74", :id => 'nh_user_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); +