-
-
-
-
-
-
- <% @project_acts.each do |act| %>
- <% if act.container_type == 'Project' %>
- <% case act.org_act_type.to_s %>
- <% when 'Issue' %>
- <%= render :partial => 'organizations/org_new_project_issues', :locals => {:activity => Issue.find(act.org_act_id)} %>
- <% when 'Message' %>
- <%= render :partial => 'organizations/org_new_project_message', :locals => {:activity => Message.find(act.org_act_id)} %>
- <% when 'ProjectCreateInfo'%>
- <%= render :partial => 'organizations/org_new_project_create', :locals => {:activity => act} %>
- <% end %>
- <% end %>
+
+
+ <% @course_acts_news.each do |act| %>
+ <%= render :partial => 'org_new_course_news', :locals => {:activity => News.find(act.org_act_id), :user_activity_id =>act.id} %>
<% end %>
+
+
+
+
+
+
+
+
+ <% when 'project' %>
+
+
+
+
+
+
+
+
-
+
+ <% @project_message_acts.each do |act| %>
+ <%= render :partial => 'organizations/org_new_project_message', :locals => {:activity => Message.find(act.org_act_id)} %>
+ <% end %>
+ <%= link_to "More", organization_path(@organization, :type => 1), :class => "more-btn mt30 fr", :target => "_blank" %>
-
-
+
+
+ <% @project_issue_acts.each do |act| %>
+ <%= render :partial => 'organizations/org_new_project_issues', :locals => {:activity => Issue.find(act.org_act_id)} %>
+ <% end %>
+ <%= link_to "More", organization_path(@organization, :type => 1), :class => "more-btn mt30 fr", :target => "_blank" %>
+
+
+
-
-
+
+
+
+ <% end %>
+ <% else %>
+ <% if field.field_type == "Post" %> <%# 讨论类型 %>
+ <% message_ats = get_message_org(@organization.id, field.id) %>
+ <% ids = field.org_document_comments.map{|o| o.id}.join(",") %>
+
+
+
<%= field.name %><%= field.id %>
discussion zone
+
+
+ <% message_ats.each do |act| %>
+ <%= render :partial => 'organizations/org_new_forum', :locals => {:activity => act, :field => field, :organization => @organization} %>
+ <% end %>
+ <%#= link_to "More", organization_path(@organization, :org_subfield_id => field.id), :class => "more-btn mt30 fr", :target => "_blank" %>
+
+
+ <% unless ids.blank? %>
+ <% message_reply_ats = get_message_reply_org(@organization.id, ids) %>
+
+ <% message_reply_ats.each do |act| %>
+ <%= render :partial => 'organizations/org_new_forum_reply', :locals => {:activity => act, :field => field, :organization => @organization} %>
+ <% end %>
+
+
-
-
- <% end %>
-<% else %>
- <% if field.field_type == "Post" %> <%# 讨论类型 %>
- <% message_ats = get_message_org(@organization.id, field.id) %>
-
-
-
<%= field.name %>
discussion zone
-
- <%= render :partial => 'organizations/org_new_forum', :locals => {:message_ats => message_ats, :field => field, :organization => @organization} %>
-
-
-
-
- <% elsif field.field_type == "Resource" %>
- <% org_attachs = get_attach_org2(field) %>
-
-
-
<%= field.name %>
resource dwonload
-
+ <% end %>
+
+
+
+ <%= link_to "More", organization_path(@organization, :org_subfield_id => field.id), :class => "more-btn-center mt30" , :target => "_blank" %>
+
+
+ <% elsif field.field_type == "Resource" %>
+ <% org_attachs = get_attach_org2(field) %>
+
+
+
<%= field.name %><%= field.id %>
resource dwonload
+
<%= render :partial => 'organizations/org_new_resource', :locals => {:org_attachs => org_attachs} %>
+
+
+ <%= link_to "More", organization_path(@organization, :org_subfield_id => field.id), :class => "more-btn-center mt30" , :target => "_blank" %>
-
- <% end %>
- <% end %>
-<% end %>
+