]> git.openstreetmap.org Git - rails.git/blob - app/views/api/old_relations/_old_relation.json.jbuilder
Use svg icons in pagination for note lists
[rails.git] / app / views / api / old_relations / _old_relation.json.jbuilder
1 json.type "relation"
2 json.id old_relation.relation_id
3 json.timestamp old_relation.timestamp.xmlschema
4 json.version old_relation.version
5 json.changeset old_relation.changeset_id
6 json.user old_relation.changeset.user.display_name
7 json.uid old_relation.changeset.user_id
8
9 json.visible old_relation.visible unless old_relation.visible
10
11 unless old_relation.relation_members.empty?
12   json.members(old_relation.relation_members) do |m|
13     json.type m.member_type.downcase
14     json.ref m.member_id
15     json.role m.member_role
16   end
17 end
18
19 json.tags old_relation.tags unless old_relation.tags.empty?