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 / projects / index.api.rsb @ 912:5e80956cc792
History | View | Annotate | Download (595 Bytes)
| 1 | 119:8661b858af72 | Chris | api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do |
|---|---|---|---|
| 2 | @projects.each do |project| |
||
| 3 | api.project do |
||
| 4 | api.id project.id |
||
| 5 | api.name project.name |
||
| 6 | api.identifier project.identifier |
||
| 7 | api.description project.description |
||
| 8 | 507:0c939c159af4 | Chris | api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible? |
| 9 | 909:cbb26bc654de | Chris | |
| 10 | 119:8661b858af72 | Chris | render_api_custom_values project.visible_custom_field_values, api |
| 11 | 909:cbb26bc654de | Chris | |
| 12 | 119:8661b858af72 | Chris | api.created_on project.created_on |
| 13 | api.updated_on project.updated_on |
||
| 14 | end |
||
| 15 | end |
||
| 16 | end |