From 0b3ec0322f80c7036a88af1dcc9295491e958a4c Mon Sep 17 00:00:00 2001
From: huang
- <%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name fl", :target => "_blank" %>
- :
- <%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 28, :maxwidth => 0, :cl => ""} %>
- <%= time_from_now(message.created_on) %>
-
-
+ <%= link_to user.show_name, user_path(user), :class => "por_hot_name fl", :target => "_blank" %>
+ :
+ <% if obj.act_type = "Message" %>
+ <%= link_to title, board_message_path(obj.act.board.id, obj.act.id) %>
+ <% elsif obj.act_type = "News" %>
+ <%= link_to title, news_path(obj.act.id) %>
+ <% elsif obj.act_type = "HomeworkCommon" %>
+ <%= link_to title, student_work_index_url_in_org(obj.act.id) %>
+ <% elsif obj.act_type = "Issue" %>
+ <%= link_to title, issue_path(obj.act.id) %>
+ <% end %>
+ <%= time_from_now(obj.act.created_on) %>
+
+
<%= content.to_s.html_safe%>
-
-
- <%= content.to_s.html_safe%>
-
-
<% @acts.each do |obj| %>
- <% if obj.act_type = "Message" %>
- <% user = org_user_by_type(obj) %>
- <% title = org_title_by_type(obj) %>
- <% content = org_content_by_type(obj) %>
- <% message = obj.act %>
- <% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
-
<% end %>
\ No newline at end of file
diff --git a/app/views/organizations/_organization_content_extension.html.erb b/app/views/organizations/_organization_content_extension.html.erb
index be5343d61..48abd48b9 100644
--- a/app/views/organizations/_organization_content_extension.html.erb
+++ b/app/views/organizations/_organization_content_extension.html.erb
@@ -1,16 +1,9 @@
-<% if cl.nil? %>
-
+
-
-
-