mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
新增:标签列表返回总数
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
json.array! @tags do |tag|
|
||||
json.total_count @tag_names.present? ? @tag_names.count : @tags.count
|
||||
json.tags @tags do |tag|
|
||||
if tag.present? && tag.is_a?(Hash)
|
||||
json.name tag['name']
|
||||
json.id tag['id']
|
||||
|
||||
Reference in New Issue
Block a user