|
|
|
@ -1,15 +1,23 @@
|
|
|
|
|
<div class="resources mt10" id="user_activity_<%= user_activity_id%>" onmouseover="$('#message_setting_<%= user_activity_id%>').show();" onmouseout="$('#message_setting_<%= user_activity_id%>').hide();">
|
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
|
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
|
|
|
|
<% if activity.status == 1 %>
|
|
|
|
|
<%= image_tag("/images/trustie_logo1.png", width: "50px", height: "50px") %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
|
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
|
<div class="homepagePostTo break_word mt-4">
|
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
|
<% if activity.status == 1 %>
|
|
|
|
|
<span class="fontBlue2">确实团队</span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
TO
|
|
|
|
|
<%= link_to activity.course.name.to_s+" | 课程讨论区", course_boards_path(activity.course,:host=> Setting.host_course), :class => "newsBlue ml15 mr5"%>
|
|
|
|
|