|
|
|
@ -250,6 +250,9 @@ module TidingDecorator
|
|
|
|
|
when 'shixunPublish' then
|
|
|
|
|
name = Shixun.find_by(id: parent_container_id)&.name || '---'
|
|
|
|
|
I18n.t(locale_format(parent_container_type)) % [name, container.score]
|
|
|
|
|
when 'Hack' then
|
|
|
|
|
name = Hack.find_by(id: container_id)&.name || '---'
|
|
|
|
|
I18n.t(locale_format(parent_container_type)) % [name, container.score]
|
|
|
|
|
else
|
|
|
|
|
I18n.t(locale_format(parent_container_type)) % container.score
|
|
|
|
|
end
|
|
|
|
|