个人主页报500
This commit is contained in:
parent
f0ed380002
commit
a3ec35c008
|
@ -3436,3 +3436,9 @@ def course_syllabus_option user = User.current
|
||||||
end
|
end
|
||||||
type
|
type
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# 获取项目动态更新时间
|
||||||
|
def get_forge_act_message(act, type)
|
||||||
|
forge_act = ForgeActivity.where(:forge_act_id => act.id, :forge_act_type => type).first
|
||||||
|
format_time(forge_act.nil? ? act.created_on : forge_act.try(:updated_at))
|
||||||
|
end
|
||||||
|
|
|
@ -18,12 +18,6 @@ module OrganizationsHelper
|
||||||
s + content_tag('ul', links,:class => 'wlist',:style=>'float:left !important', :id => "org_member_pagination_links" )
|
s + content_tag('ul', links,:class => 'wlist',:style=>'float:left !important', :id => "org_member_pagination_links" )
|
||||||
end
|
end
|
||||||
|
|
||||||
# 获取项目动态更新时间
|
|
||||||
def get_forge_act_message(act, type)
|
|
||||||
forge_act = ForgeActivity.where(:forge_act_id => act.id, :forge_act_type => type).first
|
|
||||||
format_time(forge_act.nil? ? act.created_on : forge_act.try(:updated_at))
|
|
||||||
end
|
|
||||||
|
|
||||||
def get_default_name field
|
def get_default_name field
|
||||||
case field.name
|
case field.name
|
||||||
when 'activity' then
|
when 'activity' then
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
发帖时间:<%= format_time(activity.created_on) %>
|
发帖时间:<%= format_time(activity.created_on) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDate fl ml15">
|
<div class="homepagePostDate fl ml15">
|
||||||
更新时间:<%= get_forge_act_message(activity, activity.class) %>
|
更新时间:<%= get_forge_act_message(activity, activity.class.to_s) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<% if activity.parent_id.nil? %>
|
<% if activity.parent_id.nil? %>
|
||||||
|
|
Loading…
Reference in New Issue