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:
3
app/views/watchers/_watcher.json.jbuilder
Normal file
3
app/views/watchers/_watcher.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.name watcher.user.real_name
|
||||
json.login watcher.user.login
|
||||
json.image_url url_to_avatar(watcher.user)
|
||||
4
app/views/watchers/index.json.jbuilder
Normal file
4
app/views/watchers/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.total_count @watchers.size
|
||||
json.watchers do
|
||||
json.partial! 'watcher', collection: @watchers, as: :watcher
|
||||
end
|
||||
Reference in New Issue
Block a user