|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<ul class="ping_box_ul ping_line">
|
|
|
|
|
<% show_real_name = @is_teacher || score.user == User.current %>
|
|
|
|
|
<% show_real_name = @is_teacher || score.user == User.current || score.user.allowed_to?(:as_teacher,@course) %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(show_real_name ? score.user : ""), :width => "34", :height => "34"), show_real_name ? user_path(score.user) : "javascript:void(0)",:class => "ping_pic fl" %>
|
|
|
|
|
<div class="ping_box_tit">
|
|
|
|
|
<%= link_to show_real_name ? score.user.show_name : "匿名", show_real_name ? user_path(score.user) : "javascript:void(0)", :title => show_real_name ? score.user.show_name : "匿评用户", :class => "c_blue fl" %>
|
|
|
|
|