|
|
|
@ -8,23 +8,24 @@
|
|
|
|
|
<% user = org_user_by_type(obj) %>
|
|
|
|
|
<% title = org_title_by_type(obj) %>
|
|
|
|
|
<% content = org_content_by_type(obj) %>
|
|
|
|
|
<% time = org_time_by_type(obj) %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(user),:width => "43", :height => "43", :class => "por_users_img"), user_path(user), :target => "_blank", :class => "fl" %>
|
|
|
|
|
<div class="por_news_txt fl">
|
|
|
|
|
<p class="por_news_p fl">
|
|
|
|
|
<%= link_to user.show_name, user_path(user), :class => "por_hot_name link-blue fl", :target => "_blank" %>
|
|
|
|
|
<span class="fl"> : </span>
|
|
|
|
|
<% if obj.act_type = "Message" %>
|
|
|
|
|
<% if obj.act_type == "Message" %>
|
|
|
|
|
<%= link_to title, board_message_path(obj.act.board.id, obj.act.id) %>
|
|
|
|
|
<% elsif obj.act_type = "News" %>
|
|
|
|
|
<% elsif obj.act_type == "News" %>
|
|
|
|
|
<%= link_to title, news_path(obj.act.id) %>
|
|
|
|
|
<% elsif obj.act_type = "HomeworkCommon" %>
|
|
|
|
|
<% elsif obj.act_type == "HomeworkCommon" %>
|
|
|
|
|
<%= link_to title, student_work_index_url_in_org(obj.act.id) %>
|
|
|
|
|
<% elsif obj.act_type = "Issue" %>
|
|
|
|
|
<% elsif obj.act_type == "Issue" %>
|
|
|
|
|
<%= link_to title, issue_path(obj.act.id) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
<p><span class="por_time fl"><%= time_from_now(obj.act.created_on) %> </span>
|
|
|
|
|
<p><span class="por_time fl"><%= time_from_now(time) %> </span>
|
|
|
|
|
<!--<a href="javascript:void(0);" target="_blank" class="por_zan fr">50</a>-->
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|