mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Patch by Jens Krämer and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18386 e93f8b46-1217-0410-a6f0-8f06a7374b81
21 lines
682 B
Plaintext
21 lines
682 B
Plaintext
api.array :versions, api_meta(:total_count => @versions.size) do
|
|
@versions.each do |version|
|
|
api.version do
|
|
api.id version.id
|
|
api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil?
|
|
|
|
api.name version.name
|
|
api.description version.description
|
|
api.status version.status
|
|
api.due_date version.effective_date
|
|
api.sharing version.sharing
|
|
api.wiki_page_title version.wiki_page_title
|
|
|
|
render_api_custom_values version.visible_custom_field_values, api
|
|
|
|
api.created_on version.created_on
|
|
api.updated_on version.updated_on
|
|
end
|
|
end
|
|
end
|