]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/reversepage.hbs
show admin level only for admin boundaries
[nominatim-ui.git] / src / templates / reversepage.hbs
index 280a28255cde566c2fc1615690f007ccd7f4f670..534b87dd6395945cddcc7d35b344f17ddd98ca4f 100644 (file)
@@ -1,17 +1,13 @@
 
 {{#*inline "partial_one_result"}}
   <div class="result" data-position="{{iResNum}}">
-    {{#if aResult.icon}}
-      <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
-      {{!-- {{formatMapIcon aResult.icon}} --}}
-    {{/if}}
+    {{formatMapIcon aResult}}
 
     <span class="name">{{aResult.display_name}}</span>
     <span class="type">{{formatLabel aResult}}</span>
     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-    <a class="details btn btn-outline-secondary btn-sm"
-       href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
+    <a class="details btn btn-outline-secondary btn-sm" href="{{detailsURL aResult}}">details</a>
   </div>
 {{/inline}}
 
@@ -41,7 +37,8 @@
       </button>
     </div>
     <div class="search-type-link">
-      <a href="/search.html">forward search</a>
+      <a href="details.html" class="mr-2">search by id</a>
+      <a href="search.html">forward search</a>
     </div>
   </form>
 </div>