|
|
@ -17,8 +17,13 @@ json.homework_type homework_type
|
|
|
|
json.time tiding.how_long_time
|
|
|
|
json.time tiding.how_long_time
|
|
|
|
json.new_tiding tiding.unread?(@onclick_time)
|
|
|
|
json.new_tiding tiding.unread?(@onclick_time)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 需要系统头像
|
|
|
|
|
|
|
|
show_system_user = tiding.trigger_user_id.zero? ||
|
|
|
|
|
|
|
|
(tiding.trigger_user_id == 1 && tiding.tiding_type == 'System') ||
|
|
|
|
|
|
|
|
tiding.anonymous?
|
|
|
|
|
|
|
|
|
|
|
|
json.trigger_user do
|
|
|
|
json.trigger_user do
|
|
|
|
if tiding.trigger_user_id.zero? || (tiding.trigger_user_id == 1 && tiding.tiding_type == 'System')
|
|
|
|
if show_system_user
|
|
|
|
json.id 0
|
|
|
|
json.id 0
|
|
|
|
json.name "系统"
|
|
|
|
json.name "系统"
|
|
|
|
json.login ""
|
|
|
|
json.login ""
|
|
|
|