班级教师列表中,用户头像建议改为和学生列表中头像一致,及链接至用户主页

This commit is contained in:
cxt 2016-11-01 16:34:04 +08:00
parent f786b40b1f
commit c1df689aa3
1 changed files with 1 additions and 3 deletions

View File

@ -6,9 +6,7 @@
<% members.each do |member| %>
<div class="st_boxlist">
<a href="javascript:" class="st_img">
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 32, :height => 32)) %>
</a>
<%= link_to image_tag(url_to_avatar(member.user), :width => "32", :height => "32", :style => "display:block;"), user_path(member.user_id),:target => '_blank', :class => 'st_img' ,:alt => "用户头像" %>
<span class="fl ml10 c_grey"><%= l(:label_username)%></span>
<%= link_to(member.user.show_name, user_path(member.user),:class => "ml10 c_blue02") %>
<span class="fr c_grey"><%= format_date(member.created_on)%></span>