|
|
@@ -1,5 +1,5 @@ |
|
|
json.array! @tags do |tag| |
|
|
json.array! @tags do |tag| |
|
|
if tag.present? |
|
|
|
|
|
|
|
|
if tag.present? && tag.is_a?(Hash) |
|
|
json.name tag['name'] |
|
|
json.name tag['name'] |
|
|
json.id tag['id'] |
|
|
json.id tag['id'] |
|
|
json.zipball_url render_zip_url(@owner, @repository, tag['name']) |
|
|
json.zipball_url render_zip_url(@owner, @repository, tag['name']) |
|
|
@@ -22,6 +22,8 @@ json.array! @tags do |tag| |
|
|
json.partial! 'commit_author', user: render_cache_commit_author(tag['commit']['author']), name: tag['commit']['author']['name'] |
|
|
json.partial! 'commit_author', user: render_cache_commit_author(tag['commit']['author']), name: tag['commit']['author']['name'] |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
else |
|
|
|
|
|
json.name tag |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|