Commits

latsami committed 4cdb8bf

target blank for external link to OSM

Comments (0)

Files changed (1)

osm/templates/cms/plugins/osm.html

 {% load i18n %}
-<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.openstreetmap.org/export/embed.html?bbox={{ object.get_bbox|join:"," }}&amp;layer=mapnik&amp;marker={{ object.lat|safe }},{{ object.lng|safe }}" style="border: 1px solid black"></iframe><br /><small><a href="http://www.openstreetmap.org/?lat={{ object.lat|safe }}&amp;lon={{ object.lng|safe }}&amp;zoom={{ object.zoom }}&amp;layers=M&amp;mlat={{ object.lat|safe }}&amp;mlon={{ object.lng|safe }}">{{ object.get_content }}</a></small>
+<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.openstreetmap.org/export/embed.html?bbox={{ object.get_bbox|join:"," }}&amp;layer=mapnik&amp;marker={{ object.lat|safe }},{{ object.lng|safe }}" style="border: 1px solid black"></iframe><br /><small><a target='_blank' href="http://www.openstreetmap.org/?lat={{ object.lat|safe }}&amp;lon={{ object.lng|safe }}&amp;zoom={{ object.zoom }}&amp;layers=M&amp;mlat={{ object.lat|safe }}&amp;mlon={{ object.lng|safe }}">{{ object.get_content }}</a></small>