课程动态
course activities
课程动态
暂无内容,敬请期待!
<% else %> @@ -173,16 +170,17 @@ <% end %>diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index 281f779d7..1ea109ff1 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -160,7 +160,7 @@ class OrganizationsController < ApplicationController def get_project_activities_org org project_ids = org.projects.map{|project| project.id}.join(",") unless project_ids.blank? - project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project' order by updated_at desc limit 3;") + project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project' order by updated_at desc limit 8;") else project_acts = nil end @@ -171,7 +171,7 @@ class OrganizationsController < ApplicationController def get_course_activities_org org course_ids = org.courses.map{|course| course.id}.join(",") unless course_ids.blank? - project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{course_ids}) and container_type = 'course' order by updated_at desc limit 6;") + project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{course_ids}) and container_type = 'course' order by updated_at desc limit 8;") else project_acts = nil end diff --git a/app/helpers/organizations_helper.rb b/app/helpers/organizations_helper.rb index 84b38e628..4faa802a5 100644 --- a/app/helpers/organizations_helper.rb +++ b/app/helpers/organizations_helper.rb @@ -30,7 +30,7 @@ module OrganizationsHelper end def get_message_org(org_id, field_id) - OrgDocumentComment.find_by_sql("SELECT * FROM org_document_comments where organization_id = #{org_id} and org_subfield_id = #{field_id} and parent_id is null order by updated_at desc limit 3;") + OrgDocumentComment.find_by_sql("SELECT * FROM org_document_comments where organization_id = #{org_id} and org_subfield_id = #{field_id} and parent_id is null order by updated_at desc limit 8;") end def get_message_reply_org(org_id, ids) diff --git a/app/views/layouts/base_org_newstyle.html.erb b/app/views/layouts/base_org_newstyle.html.erb index f2210ae3a..442bb7b60 100644 --- a/app/views/layouts/base_org_newstyle.html.erb +++ b/app/views/layouts/base_org_newstyle.html.erb @@ -110,13 +110,10 @@ <% if is_default_field?(field) %> <% case field.name %> <% when 'course' %> - - - -
course activities
暂无内容,敬请期待!
<% else %> @@ -173,16 +170,17 @@ <% end %>暂无内容,敬请期待!
<% else %>暂无内容,敬请期待!
<% else %> @@ -209,7 +207,7 @@暂无内容,敬请期待!
<% else %>暂无内容,敬请期待!
<% else %>暂无内容,敬请期待!
<% else %>