diff options
author | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
---|---|---|
committer | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
commit | b6ca062670b342344df08b53fb216db619ef42bc (patch) | |
tree | 7680ac6b407239f6b7272c937e42f688b8de542c /app/views/export |
Import legacy manman source
Copied from www.ffgraz.net
Diffstat (limited to 'app/views/export')
-rw-r--r-- | app/views/export/all.rxml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/export/all.rxml b/app/views/export/all.rxml new file mode 100644 index 0000000..d1aa10e --- /dev/null +++ b/app/views/export/all.rxml @@ -0,0 +1,31 @@ +xml.instruct! :xml, :version=>"1.0" + +xml.network{ + for location in @locations + xml.location do + xml.name(location.name) + xml.street(location.street) + xml.streetnr(location.streetnr) + xml.comment(location.comment) + xml.gallery(location.gallery_link) + xml.lat(location.lat) + xml.lon(location.lon) + + for node in location.node + xml.node do + xml.name(node.name) + xml.comment(node.comment) + + for ip in node.ip + xml.ip do + xml.name(ip.name) + xml.address(ip.ip) + xml.dns("#{ip.name}.#{node.name}.#{location.name}") + end + end + + end + end + end + end +} |