]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
detailpage link only when osm_id is set
authormarc tobias <mtmail@gmx.net>
Fri, 4 Sep 2020 21:01:17 +0000 (23:01 +0200)
committermarc tobias <mtmail@gmx.net>
Fri, 4 Sep 2020 21:01:17 +0000 (23:01 +0200)
dist/deletable.html
dist/details.html
dist/polygons.html
dist/reverse.html
dist/search.html
src/templates/detailspage.hbs

index 6ecc5fd04c72b9359520cafd628eb534d7959e65..36be96195ea394217b9bbbf3e10ee8455a403abc 100644 (file)
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}
 
index 6ecc5fd04c72b9359520cafd628eb534d7959e65..36be96195ea394217b9bbbf3e10ee8455a403abc 100644 (file)
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}
 
index 6ecc5fd04c72b9359520cafd628eb534d7959e65..36be96195ea394217b9bbbf3e10ee8455a403abc 100644 (file)
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}
 
index 6ecc5fd04c72b9359520cafd628eb534d7959e65..36be96195ea394217b9bbbf3e10ee8455a403abc 100644 (file)
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}
 
index 6ecc5fd04c72b9359520cafd628eb534d7959e65..36be96195ea394217b9bbbf3e10ee8455a403abc 100644 (file)
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}
 
index 8fcda7cc82ae8fd1006f254cc5652c90bd1f063a..e0225e866ed4504c3354f9cf06f027019296ebdd 100644 (file)
@@ -13,7 +13,7 @@
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance bDistanceInMeters}}</td>
-    <td><a href="{{detailsURL this}}">details</td>
+    <td>{{#if this.osm_id}}<a href="{{detailsURL this}}">details</a>{{/if}}</td>
   </tr>
 {{/inline}}