44 lines
2.8 KiB
Plaintext
44 lines
2.8 KiB
Plaintext
<% user_activities.each do |user_activity|
|
|
unless user_activities.nil? %>
|
|
<% act= user_activity.act unless user_activity.act_type == "ProjectCreateInfo" %>
|
|
<% case user_activity.container_type.to_s %>
|
|
<% when 'Course' %>
|
|
<% if act %>
|
|
<% case user_activity.act_type.to_s %>
|
|
<% when 'HomeworkCommon' %>
|
|
<%= render :partial => 'course_homework', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<% when 'News' %>
|
|
<%= render :partial => 'course_news', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<% when 'Message'%>
|
|
<%= render :partial => 'course_message', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'Course'%>
|
|
<%#= render :partial => 'course_create', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'Attachment' %>
|
|
<%#= render :partial => 'course_attachment', :locals => {:activity => act, :user_activity => user_activity} %>
|
|
<%# when 'JournalsForMessage' %>
|
|
<%#= render :partial => 'course_journalsformessage', :locals => {:activity => act, :user_activity => user_activity} %>
|
|
<% when 'Poll' %>
|
|
<%= render :partial => 'course_poll', :locals => {:activity => act, :user_activity => user_activity} %>
|
|
<% end %>
|
|
<% end %>
|
|
<% when 'Project' %>
|
|
<% case user_activity.act_type.to_s %>
|
|
<% when 'Issue' %>
|
|
<%= render :partial => 'project_issue', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<% when 'Message' %>
|
|
<%= render :partial => 'project_message', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'Journal' %>
|
|
<%#= render :partial => 'project_journal', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'News' %>
|
|
<%#= render :partial => 'project_news', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'Document' %>
|
|
<%#= render :partial => 'project_document', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'Attachment' %>
|
|
<%#= render :partial => 'project_attachment', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<%# when 'ProjectCreateInfo' %>
|
|
<%#= render :partial => 'project_create', :locals => {:activity => act,:user_activity =>user_activity} %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<input type="hidden" value="<%= page%>" id="show_more_activities" /> |