mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
init project
This commit is contained in:
11
app/views/projects/_project.json.jbuilder
Normal file
11
app/views/projects/_project.json.jbuilder
Normal file
@@ -0,0 +1,11 @@
|
||||
json.id project.id
|
||||
json.identifier project.identifier
|
||||
json.name project.name
|
||||
json.description project.description
|
||||
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)
|
||||
Reference in New Issue
Block a user