X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/710a464a6ac3e6b91980928992503a7d763ac820..58dca50a7100ce278059f27e589c1d4d09f2f033:/src/templates/detailspage.hbs
diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs
index 929cf71..8fcda7c 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}}
@@ -8,12 +8,12 @@
No Name
{{/if}}
|
- {{this.class}}:{{this.type}} |
+ {{formatPlaceType this}} |
{{osmLink this}} |
{{this.rank_address}} |
{{formatAdminLevel this.admin_level}} |
- {{formatDistance this.distance}} |
- {{detailsPermaLink this 'details >'}} |
+ {{formatDistance this.distance bDistanceInMeters}} |
+ details |
{{/inline}}
@@ -40,11 +40,11 @@
{{aPlace.localname}}
- {{detailsPermaLink aPlace 'link to this page'}}
+ link to this page
- {{formatMapIcon aPlace.icon}}
+ {{formatMapIcon aPlace}}
@@ -145,7 +145,7 @@
Address
-
+
Local name |
@@ -160,14 +160,14 @@
{{#if aPlace.address}}
{{#each aPlace.address}}
- {{> partial_details_one_row}}
+ {{> 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}}
+ {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
{{/each}}
{{/if}}
@@ -189,13 +189,13 @@
{{#each aPlace.hierarchy as |lines type|}}
{{> partial_h3 type}}
{{#each lines}}
- {{> partial_details_one_row}}
+ {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}}
{{/each}}
{{/each}}
{{else}}
- display child places
|