From 0d05d04d2ca93d3844941c3d651aaf3c543bbb84 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 26 Aug 2016 14:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E7=BC=96=E8=BE=91=E7=9A=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_course_base_info.html.erb | 8 +++++--- app/views/layouts/base_projects.html.erb | 8 +++++--- app/views/layouts/new_base_user.html.erb | 6 ++++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/_course_base_info.html.erb b/app/views/layouts/_course_base_info.html.erb index 4664e6f41..38b1c8a6f 100644 --- a/app/views/layouts/_course_base_info.html.erb +++ b/app/views/layouts/_course_base_info.html.erb @@ -32,11 +32,13 @@
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 289b888fd..aebbccfe6 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -53,10 +53,12 @@
<% if User.current.logged? && (User.current.id == @project.user_id || User.current.admin?)%> <%=link_to image_tag(url_to_avatar(@project),width:"60", height: "60", :id=>'nh_source_tx'), my_clear_user_avatar_temp_path(:project => @project.id), :remote => true%> - <% else %> +
+ <%=link_to '', my_clear_user_avatar_temp_path(:project => @project.id), :remote => true, :class => 'homepageEditProfileIcon', :title => '点击编辑Logo' %> +
+ <% else %> <%= image_tag(url_to_avatar(@project), :width => "60", :height => "60", :alt => "项目logo") %> - <% end %> -
+ <% end %>
diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index b5643982d..3f7cc47b4 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -104,8 +104,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%> -
+ <%=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%> +
+ <%=link_to '', my_clear_user_avatar_temp_path, :class => 'homepageEditProfileIcon', :remote => true, :title => '点击编辑Logo' %> +
<% else %>