Mercurial > hg > soundsoftware-site
view app/views/projects/.svn/text-base/index.xml.builder.svn-base @ 350:a1e6dc0e204b feature_123
Show Overview wiki page, if it exists, instead of (almost) entire overview page
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 31 Mar 2011 16:14:38 +0100 |
parents | 94944d00e43c |
children |
line wrap: on
line source
xml.instruct! xml.projects :type => 'array' do @projects.each do |project| xml.project do xml.id project.id xml.name project.name xml.identifier project.identifier xml.description project.description xml.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil? xml.custom_fields do project.visible_custom_field_values.each do |custom_value| xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name end end unless project.custom_field_values.empty? xml.created_on project.created_on xml.updated_on project.updated_on end end end