2015-10-17 17:28:57 +03:00
|
|
|
@tracks.each do |track|
|
|
|
|
json.set! track.id do
|
2015-10-17 19:47:15 +03:00
|
|
|
json.color track.color
|
2015-10-18 14:00:56 +03:00
|
|
|
json.foreground_color track.foreground_color
|
|
|
|
json.css_class track.css_class
|
|
|
|
json.css_style track.css_style
|
2015-10-17 17:28:57 +03:00
|
|
|
json.name do
|
|
|
|
track.translations.each do |translation|
|
|
|
|
json.set! translation.locale, translation.name
|
|
|
|
end
|
2015-10-08 02:34:19 +03:00
|
|
|
end
|
2015-10-17 17:28:57 +03:00
|
|
|
json.description do
|
|
|
|
track.translations.each do |translation|
|
|
|
|
json.set! translation.locale, translation.description
|
|
|
|
end
|
2015-10-08 02:34:19 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|