Changeset 2c2ac7d in osmose-frontend


Ignore:
Timestamp:
May 16, 2014 4:32:59 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Children:
702b2f2
Parents:
dee7593
Message:

Follow GPX 1.0 on export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • views/errors/list.gpx

    rdee7593 r2c2ac7d  
    11%import re 
    22<?xml version="1.0" encoding="UTF-8"?> 
    3 <gpx> 
     3<gpx version="1.0" creator="http://osmose.openstreetmap.fr" 
     4xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     5xmlns="http://www.topografix.com/GPX/1/0" 
     6xsi:schemaLocation="http://www.topografix.com/GPX/1/0 
     7http://www.topografix.com/GPX/1/0/gpx.xsd"> 
    48%for res in items: 
    59%    if item == str(res["item"]): 
     
    913    <name>Osmose{{title}}</name> 
    1014%if len(errors) > 0: 
    11     <time>{{errors[0]["timestamp"].ctime()}}</time> 
     15    <time>{{errors[0]["timestamp"].strftime("%Y-%m-%d %H:%M:%S")}}</time> 
    1216%end 
    13     <link>http://{{website}}/errors/?{{query}}</link> 
     17    <url>http://{{website}}/errors/?{{query}}</url> 
    1418%for res in errors: 
    1519%    if res["lat"] and res["lon"]: 
     
    5963%    end 
    6064    </desc> 
    61     <link>http://{{website}}/map/#zoom=13&amp;lat={{lat}}&amp;lon={{lon}}&amp;item={{res["item"]}}&amp;level={{res["level"]}}</link> 
     65    <url>http://{{website}}/map/#zoom=13&amp;lat={{lat}}&amp;lon={{lon}}&amp;item={{res["item"]}}&amp;level={{res["level"]}}</url> 
    6266</wpt> 
    6367%end 
Note: See TracChangeset for help on using the changeset viewer.