Mercurial > hg > soundsoftware-site
annotate app/views/projects/show.xml.builder @ 257:3ecf99348b9f feature_80
* Enable toggling file active state through the files interface
| author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
|---|---|
| date | Fri, 04 Mar 2011 12:46:26 +0000 |
| parents | 94944d00e43c |
| children |
| rev | line source |
|---|---|
| Chris@0 | 1 xml.instruct! |
| Chris@0 | 2 xml.project do |
| Chris@0 | 3 xml.id @project.id |
| Chris@0 | 4 xml.name @project.name |
| Chris@0 | 5 xml.identifier @project.identifier |
| Chris@0 | 6 xml.description @project.description |
| Chris@0 | 7 xml.homepage @project.homepage |
| Chris@0 | 8 |
| Chris@0 | 9 xml.custom_fields do |
| chris@37 | 10 @project.visible_custom_field_values.each do |custom_value| |
| Chris@0 | 11 xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name |
| Chris@0 | 12 end |
| Chris@0 | 13 end unless @project.custom_field_values.empty? |
| Chris@0 | 14 |
| Chris@0 | 15 xml.created_on @project.created_on |
| Chris@0 | 16 xml.updated_on @project.updated_on |
| Chris@0 | 17 |
| Chris@0 | 18 xml.trackers do |
| Chris@0 | 19 @project.trackers.each do |tracker| |
| Chris@0 | 20 xml.tracker(:id => tracker.id, :name => tracker.name) |
| Chris@0 | 21 end |
| Chris@0 | 22 end |
| Chris@0 | 23 end |
