diff --git a/app/views/projects/index.json.jbuilder b/app/views/projects/index.json.jbuilder index b4e150314..f286dcc5b 100644 --- a/app/views/projects/index.json.jbuilder +++ b/app/views/projects/index.json.jbuilder @@ -1,7 +1,19 @@ json.total_count @total_count json.projects do json.array! @projects.to_a do |project| - json.partial! 'project', project: project + json.id project.id + json.identifier project.identifier + json.name project.name + json.description Nokogiri::HTML(project.description).text + json.visits project.visits + json.praises_count project.praises_count + json.forked_count project.forked_count + json.is_public project.is_public + json.mirror_url project.repository&.mirror_url + json.last_update_time render_unix_time(project.updated_on) + json.time_ago time_from_now(project.updated_on) + json.forked_from_project_id project.forked_from_project_id + # json.partial! 'project', project: project json.author do json.name project.owner.try(:show_real_name) json.login project.owner.login