rosa-build/app/views/platforms/repositories/_project.json.jbuilder

13 lines
520 B
Plaintext
Raw Normal View History

json.total_items @total_items
json.projects @projects do |project|
json.id project.id
json.visibility_class fa_visibility_icon(project)
json.path project_path(project.name_with_owner)
json.name project.name_with_owner
json.description truncate(project.description || '', length: 60).gsub(/\n|\r|\t/, ' ')
2015-03-14 22:10:04 +00:00
if policy(@repository).remove_project?
json.remove_path remove_project_platform_repository_path(@platform, @repository, project_id: project.id)
end
end