Browse Source

版本发布的字段名称修改

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
f52fc83a44
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/views/version_releases/index.json.jbuilder

+ 2
- 2
app/views/version_releases/index.json.jbuilder View File

@@ -19,7 +19,7 @@ json.releases do
json.created_at format_time(re["created_at"].to_s.to_time)
json.published_at format_time(re["published_at"].to_s.to_time)
json.user_name user.present? ? user.try(:show_real_name) : ""
json.user_avatar user.present? ? url_to_avatar(user) : ""
json.image_url user.present? ? url_to_avatar(user) : ""
else
unless re["draft"]
json.version_id version.try(:id)
@@ -35,7 +35,7 @@ json.releases do
json.created_at format_time(re["created_at"].to_s.to_time)
json.published_at format_time(re["published_at"].to_s.to_time)
json.user_name user.present? ? user.try(:show_real_name) : ""
json.user_avatar user.present? ? url_to_avatar(user) : ""
json.image_url user.present? ? url_to_avatar(user) : ""
end
end



Loading…
Cancel
Save