X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/2d04ebbd7dd3f76783f1d1595504921292614beb..1f80258deb791946182b186b4c90b3aaec2f0d1d:/src/templates/detailspage.hbs diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs index 783865a..85ad950 100644 --- a/src/templates/detailspage.hbs +++ b/src/templates/detailspage.hbs @@ -1,6 +1,6 @@ {{#*inline "partial_details_one_row"}} - + {{#if this.localname}} {{this.localname}} @@ -13,7 +13,7 @@ {{this.rank_address}} {{formatAdminLevel this.admin_level}} {{formatDistance this.distance bDistanceInMeters}} - {{detailsPermaLink this 'details >'}} + {{#if this.osm_id}}details{{/if}} {{/inline}} @@ -40,7 +40,7 @@

{{aPlace.localname}} - {{detailsPermaLink aPlace 'link to this page'}} + link to this page

@@ -68,13 +68,19 @@ Last Updated {{aPlace.indexed_date}} + {{#if (isAdminBoundary aPlace) }} Admin Level {{aPlace.admin_level}} + {{/if}} + + Search Rank + {{aPlace.rank_search}} + - Rank - {{formatSearchRank aPlace.rank_search}} + Address Rank + {{aPlace.rank_address}} ({{formatAddressRank aPlace.rank_address}}) {{#if aPlace.calculated_importance}} @@ -160,14 +166,14 @@ {{#if aPlace.address}} {{#each aPlace.address}} - {{> partial_details_one_row bDistanceInMeters=false}} + {{> partial_details_one_row bDistanceInMeters=false bAddressLineUsed=this.isaddress}} {{/each}} {{/if}} {{#if aPlace.linked_places}} {{> partial_h2 'Linked Places'}} {{#each aPlace.linked_places}} - {{> partial_details_one_row bDistanceInMeters=true}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} {{/each}} {{/if}} @@ -189,7 +195,7 @@ {{#each aPlace.hierarchy as |lines type|}} {{> partial_h3 type}} {{#each lines}} - {{> partial_details_one_row bDistanceInMeters=true}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} {{/each}} {{/each}} {{else}}