2014-10-28 23:04:45 +00:00
|
|
|
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/, ' ')
|
|
|
|
json.add_path url_for(controller: :repositories, action: :add_project, project_id: project.id)
|
2012-07-26 21:25:44 +01:00
|
|
|
end
|
|
|
|
|
2014-10-30 18:07:43 +00:00
|
|
|
json.total_items @total_items
|