forked from Trustie/forgeplus
新增:需要登录
This commit is contained in:
parent
c676bb34fe
commit
fcdfdc7c97
|
|
@ -7,7 +7,7 @@ json.forum_section_title memo.forum_section_title
|
|||
json.id memo.id
|
||||
json.is_fine memo.is_fine
|
||||
json.is_original memo.is_original
|
||||
json.memo_watched @current_user.watched?(memo)
|
||||
json.memo_watched current_user.watched?(memo)
|
||||
json.new_reply memo.new_reply
|
||||
json.praises_count memo.praises_count
|
||||
json.published_time memo.published_at.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ json.resident_expert do
|
|||
json.partial! 'api/v1/resident_experts/resident_expert', locals: { resident_expert: @resident_expert }
|
||||
end
|
||||
json.memos do |memo|
|
||||
json.partial! 'api/v1/users/memos/memo', locals: { memo: memo }
|
||||
json.partial! 'api/v1/users/memos/memo', locals: { memo: memo, current_user: current_user }
|
||||
end
|
||||
Loading…
Reference in New Issue