From: Andy Allan Date: Wed, 29 Sep 2021 14:14:53 +0000 (+0100) Subject: Refactor tracepoint index to use an xml builder view X-Git-Tag: live~2444^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/95e5178bfbb2a37bf26b57e4f5dfcb329dd3333c?ds=inline;hp=95e5178bfbb2a37bf26b57e4f5dfcb329dd3333c Refactor tracepoint index to use an xml builder view This avoids constructing xml by hand in both the controller and the model, and opens the way for other rendering in future. The complexity of deciding which point goes where, along with revisiting previous tracks and tracksegs means that I've broken it down into two parts - sorting the points into the right trksegs is done first, before rendering them all as xml. I couldn't find a way to allow revisiting using the builder. ---