12 lines
483 B
Ruby
12 lines
483 B
Ruby
json.total_items @total_items
|
|
|
|
json.projects @projects do |project|
|
|
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/, ' ')
|
|
if can? :remove_project, @repository
|
|
json.remove_path remove_project_platform_repository_path(@platform, @repository, project_id: project.id)
|
|
end
|
|
end
|