annotate app/views/projects/show.xml.builder @ 36:de76cd3e8c8e cc-branches

* Probably abortive experiments in extracting the branch from Hg
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 20 Oct 2010 10:07:29 +0100
parents 513646585e45
children 94944d00e43c
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@0 10 @project.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