Changeset b441b4a in osmose-frontend


Ignore:
Timestamp:
Nov 24, 2012 7:00:07 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
d3faee4
Parents:
4707fa5
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (24/11/2012 18:54:51)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (24/11/2012 19:00:07)
Message:

Remove website from js template for popup

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map.py

    r4707fa5 rb441b4a  
    354354def popup_template(db, lang): 
    355355 
    356     return template('map/popup', mustache_delimiter="{{=<% %>=}}") 
     356    return template('map/popup', mustache_delimiter="{{=<% %>=}}", 
     357                                 website=utils.website) 
    357358 
    358359 
     
    493494    response.content_type = "application/json" 
    494495    return json.dumps({ 
    495         "website": utils.website, 
    496496        "lat":lat, "lon":lon, 
    497497        "minlat": float(lat) - 0.002, "maxlat": float(lat) + 0.002, 
  • views/map/popup.tpl

    r4707fa5 rb441b4a  
    3535  <%#fixes%> 
    3636      <div class="fix"> 
    37         <a class="link" href="http://localhost:8111/import?url=http://<%website%>/error/<%error_id%>/fix/<%num%>" target="hiddenIframe">josm fix</a> 
     37        <a class="link" href="http://localhost:8111/import?url=http://{{website}}/error/<%error_id%>/fix/<%num%>" target="hiddenIframe">josm fix</a> 
    3838    <%#add%> 
    3939        <div class="add"> + <b><%k%></b> = <%v%></div> 
     
    5555    <div class="bulle_elem"> 
    5656      <div class="fix"> 
    57         <a class="link" href="http://localhost:8111/import?url=http://<%website%>/error/<%error_id%>/fix/<%num%>" target="hiddenIframe">josm fix</a> 
     57        <a class="link" href="http://localhost:8111/import?url=http://{{website}}/error/<%error_id%>/fix/<%num%>" target="hiddenIframe">josm fix</a> 
    5858  <%#add%> 
    5959        <div class="add"> + <b><%k%></b> = <%v%></div> 
Note: See TracChangeset for help on using the changeset viewer.