UAU - PRODUZIMOS EMOÇÕES
Línguas
Passatempos
xml.id p.id
xml.tipo p.tipo
xml.title p.titulo
if p.tipo == 'votacao' xml.quantas p.num_votos end
xml.data p.data
xml.subtitle p.data
xml.premios p.premios
xml.description p.lead
xml.texto p.descricao
xml.smallimage Asset.find(p.imagem) ? Asset.find(p.imagem).small_frame_url : ''
xml.bigimages Asset.find(p.teaser) ? Asset.find(p.teaser).full_live_url : ''
xml.estado p.estado
xml.regulamento p.regulamento
if p.estado == 'resultados'
xml.musicas :tipo => 'vencedores' do
p.vencedores.each do |v|
xml.musica do
xml.id 0
xml.nome v['titulo']
xml.url v['link']
end
end
end
else
xml.linkexterno p.link_vermais
if p.galeria.size > 0
p.galeria.each do |g|
xml.musica do
xml.id 0
xml.nome g['titulo']
xml.url g['link']
end
end
end
end
xml.id p.id
xml.tipo p.tipo
xml.title p.titulo
if p.tipo == 'votacao' xml.quantas p.num_votos end
xml.data p.data
xml.subtitle p.data
xml.premios p.premios
xml.description p.lead
xml.texto p.descricao
xml.smallimage Asset.find(p.imagem) ? Asset.find(p.imagem).small_frame_url : ''
xml.bigimages Asset.find(p.teaser) ? Asset.find(p.teaser).full_live_url : ''
xml.estado p.estado
xml.regulamento p.regulamento
if p.estado == 'resultados'
xml.musicas :tipo => 'vencedores' do
p.vencedores.each do |v|
xml.musica do
xml.id 0
xml.nome v['titulo']
xml.url v['link']
end
end
end
else
xml.linkexterno p.link_vermais
if p.galeria.size > 0
p.galeria.each do |g|
xml.musica do
xml.id 0
xml.nome g['titulo']
xml.url g['link']
end
end
end
end
xml.id p.id
xml.tipo p.tipo
xml.title p.titulo
if p.tipo == 'votacao' xml.quantas p.num_votos end
xml.data p.data
xml.subtitle p.data
xml.premios p.premios
xml.description p.lead
xml.texto p.descricao
xml.smallimage Asset.find(p.imagem) ? Asset.find(p.imagem).small_frame_url : ''
xml.bigimages Asset.find(p.teaser) ? Asset.find(p.teaser).full_live_url : ''
xml.estado p.estado
xml.regulamento p.regulamento
if p.estado == 'resultados'
xml.musicas :tipo => 'vencedores' do
p.vencedores.each do |v|
xml.musica do
xml.id 0
xml.nome v['titulo']
xml.url v['link']
end
end
end
else
xml.linkexterno p.link_vermais
if p.galeria.size > 0
p.galeria.each do |g|
xml.musica do
xml.id 0
xml.nome g['titulo']
xml.url g['link']
end
end
end
end
xml.id p.id
xml.tipo p.tipo
xml.title p.titulo
if p.tipo == 'votacao' xml.quantas p.num_votos end
xml.data p.data
xml.subtitle p.data
xml.premios p.premios
xml.description p.lead
xml.texto p.descricao
xml.smallimage Asset.find(p.imagem) ? Asset.find(p.imagem).small_frame_url : ''
xml.bigimages Asset.find(p.teaser) ? Asset.find(p.teaser).full_live_url : ''
xml.estado p.estado
xml.regulamento p.regulamento
if p.estado == 'resultados'
xml.musicas :tipo => 'vencedores' do
p.vencedores.each do |v|
xml.musica do
xml.id 0
xml.nome v['titulo']
xml.url v['link']
end
end
end
else
xml.linkexterno p.link_vermais
if p.galeria.size > 0
p.galeria.each do |g|
xml.musica do
xml.id 0
xml.nome g['titulo']
xml.url g['link']
end
end
end
end
© copyright 2008 UAU - Todos os direitos reservados
powered by Excentric