To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / versions / index.api.rsb @ 1591:63650ae64bf2
History | View | Annotate | Download (604 Bytes)
| 1 |
api.array :versions, api_meta(:total_count => @versions.size) do |
|---|---|
| 2 |
@versions.each do |version| |
| 3 |
api.version do |
| 4 |
api.id version.id |
| 5 |
api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil? |
| 6 |
|
| 7 |
api.name version.name |
| 8 |
api.description version.description |
| 9 |
api.status version.status |
| 10 |
api.due_date version.effective_date |
| 11 |
api.sharing version.sharing |
| 12 |
|
| 13 |
render_api_custom_values version.custom_field_values, api |
| 14 |
|
| 15 |
api.created_on version.created_on |
| 16 |
api.updated_on version.updated_on |
| 17 |
end |
| 18 |
end |
| 19 |
end |