annotate app/views/projects/index.api.rsb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents dffacf8a6908
children
rev   line source
Chris@119 1 api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do
Chris@119 2 @projects.each do |project|
Chris@119 3 api.project do
Chris@119 4 api.id project.id
Chris@119 5 api.name project.name
Chris@119 6 api.identifier project.identifier
Chris@119 7 api.description project.description
Chris@507 8 api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
Chris@1517 9 api.status project.status
Chris@909 10
Chris@119 11 render_api_custom_values project.visible_custom_field_values, api
Chris@909 12
Chris@119 13 api.created_on project.created_on
Chris@119 14 api.updated_on project.updated_on
Chris@119 15 end
Chris@119 16 end
Chris@119 17 end