<%= csrf_meta_tag %> <%= favicon %> <%= javascript_heads %> <%= heads_for_theme %> <%= stylesheet_link_tag 'org_new_style' %> <%= javascript_include_tag 'org' %> <%= javascript_include_tag 'attachments' %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<%# 登录 %> <%= render :partial => 'organizations/org_logined_header' %>
<% @subfield_content.each do |field| %> <% if is_default_field?(field) %> <% case field.name %> <% when 'course' %>

课程动态

course activities

<% @course_acts_homework.each do |act| %> <% if act.container_type == 'Course' %> <% case act.org_act_type.to_s %> <% when 'HomeworkCommon' %> <%= render :partial => 'org_new_course_homework', :locals => {:activity => HomeworkCommon.find(act.org_act_id),:user_activity_id =>act.id,:course_activity => 0} %> <% when 'News' %> <%= render :partial => 'org_new_course_news', :locals => {:activity => News.find(act.org_act_id),:user_activity_id =>act.id} %> <% when 'Message'%> <%= render :partial => 'org_new_course_message', :locals => {:activity => Message.find(act.org_act_id),:user_activity_id =>act.id} %> <% when 'Poll' %> <%= render :partial => 'org_new_course_poll', :locals => {:activity => Poll.find(act.org_act_id), :user_activity_id => act.id} %> <% when 'Course'%> <%= render :partial => 'org_new_course_create', :locals => {:activity => Course.find(act.org_act_id), :user_activity_id => act.id} %> <% end %> <% end %> <% end %> More
<% @course_acts_message.each do |act| %> <% if act.container_type == 'Course' %> <% case act.org_act_type.to_s %> <% when 'HomeworkCommon' %> <%= render :partial => 'org_new_course_homework', :locals => {:activity => HomeworkCommon.find(act.org_act_id),:user_activity_id =>act.id,:course_activity => 0} %> <% when 'News' %> <%= render :partial => 'org_new_course_news', :locals => {:activity => News.find(act.org_act_id),:user_activity_id =>act.id} %> <% when 'Message'%> <%= render :partial => 'org_new_course_message', :locals => {:activity => Message.find(act.org_act_id),:user_activity_id =>act.id} %> <% when 'Poll' %> <%= render :partial => 'org_new_course_poll', :locals => {:activity => Poll.find(act.org_act_id), :user_activity_id => act.id} %> <% when 'Course'%> <%= render :partial => 'org_new_course_create', :locals => {:activity => Course.find(act.org_act_id), :user_activity_id => act.id} %> <% end %> <% end %> <% end %> More
<% when 'project' %>

项目动态

project activities

<% @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 %> <% end %>
<% end %> <% else %> <% if field.field_type == "Post" %> <% message_ats = get_message_org(@organization.id, field.id) %>

<%= field.name %>

activity zone

<% elsif field.field_type == "Resource" %> <% org_attachs = get_attach_org2(field) %>

<%= field.name %>

resource dwonload

<%= render :partial => 'organizations/org_new_resource', :locals => {:org_attachs => org_attachs} %>
<% end %> <% end %> <% end %>