annotate app/views/projects/show.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.project do
Chris@119 2 api.id @project.id
Chris@119 3 api.name @project.name
Chris@119 4 api.identifier @project.identifier
Chris@119 5 api.description @project.description
Chris@119 6 api.homepage @project.homepage
Chris@507 7 api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
Chris@1517 8 api.status @project.status
Chris@909 9
Chris@119 10 render_api_custom_values @project.visible_custom_field_values, api
Chris@909 11
Chris@119 12 api.created_on @project.created_on
Chris@119 13 api.updated_on @project.updated_on
Chris@909 14
Chris@119 15 api.array :trackers do
Chris@119 16 @project.trackers.each do |tracker|
Chris@119 17 api.tracker(:id => tracker.id, :name => tracker.name)
Chris@119 18 end
Chris@119 19 end if include_in_api_response?('trackers')
Chris@909 20
Chris@909 21 api.array :issue_categories do
Chris@909 22 @project.issue_categories.each do |category|
Chris@909 23 api.issue_category(:id => category.id, :name => category.name)
Chris@909 24 end
Chris@909 25 end if include_in_api_response?('issue_categories')
Chris@119 26 end