X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/20f270fe814e54e9322f65b58d93bbe24989a18e..8c17a599828a55c8017d60c49d02305424a9ee7e:/src/templates/detailspage.hbs?ds=sidebyside diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs index 22b4b07..e0225e8 100644 --- a/src/templates/detailspage.hbs +++ b/src/templates/detailspage.hbs @@ -1,184 +1,209 @@ {{#*inline "partial_details_one_row"}} - - - {{#if this.localname}} - {{this.localname}} - {{else}} - No Name - {{/if}} - - {{this.class}}:{{this.type}} - {{osmLink this}} - {{this.rank_address}} - {{formatAdminLevel this.admin_level}} - {{formatDistance this.distance}} - {{detailsLink this null}} - + + + {{#if this.localname}} + {{this.localname}} + {{else}} + No Name + {{/if}} + + {{formatPlaceType this}} + {{osmLink this}} + {{this.rank_address}} + {{formatAdminLevel this.admin_level}} + {{formatDistance this.distance bDistanceInMeters}} + {{#if this.osm_id}}details{{/if}} + {{/inline}} {{#*inline "partial_details_keyword_one_row"}} - - {{formatKeywordToken this.token}} - {{#if this.id}} - word id: {{this.id}} - {{/if}} - + + {{formatKeywordToken this.token}} + {{#if this.id}} + word id: {{this.id}} + {{/if}} + {{/inline}} {{#*inline "partial_h2"}} -

{{this}}

+

{{this}}

{{/inline}} {{#*inline "partial_h3"}} -

{{this}}

+

{{this}}

{{/inline}}
-
-
-

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

-
-
- {{formatMapIcon aPlace.icon}} -
+
+
+

+ {{aPlace.localname}} + link to this page +

+
+
+ {{formatMapIcon aPlace}} +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + {{#if aPlace.calculated_importance}} + + + + + {{/if}} + + + + + + + + + + + + + + + + {{#if aPlace.calculated_wikipedia}} + + + + + {{/if}} + + + + + + + + + + + + +
Name + {{#each aPlace.names}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
Type{{aPlace.category}}:{{aPlace.type}}
Last Updated{{aPlace.indexed_date}}
Admin Level{{aPlace.admin_level}}
Rank{{formatSearchRank aPlace.rank_search}}
Importance + {{aPlace.calculated_importance}} + {{#unless aPlace.importance}} (estimated){{/unless}} +
Coverage{{coverageType aPlace}}
Centre Point (lat,lon) + {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}} +
OSM{{osmLink aPlace}} +
+ Place Id + (on this server) + {{aPlace.place_id}}
Wikipedia Calculated{{wikipediaLink aPlace}}
Computed Postcode{{aPlace.calculated_postcode}}
Address Tags + {{#each aPlace.addresstags}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
Extra Tags + {{#each aPlace.extratags}} +
+ {{this}} ({{@key}}) +
+ {{/each}} +
-
-
- - - - - - - - - - - - - - - - - - - - - - {{#if aPlace.calculated_importance}} - - - - - {{/if}} - - - - - - - - - - - - {{#if aPlace.calculated_wikipedia}} - - - - - {{/if}} - - - - - - - - - - - - -
Name - {{#each aPlace.names}} -
{{this}} ({{@key}})
- {{/each}} -
Type{{aPlace.category}}:{{aPlace.type}}
Last Updated{{aPlace.indexed_date}}
Admin Level{{aPlace.admin_level}}
Rank{{formatSearchRank aPlace.rank_search}}
Importance - {{aPlace.calculated_importance}} - {{#unless aPlace.importance}} (estimated){{/unless}} -
Coverage{{coverageType aPlace}}
Centre Point (lat,lon){{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}}
OSM{{osmLink aPlace}} -
Wikipedia Calculated{{wikipediaLink aPlace}}
Computed Postcode{{aPlace.calculated_postcode}}
Address Tags - {{#each aPlace.addresstags}} -
{{this}} ({{@key}})
- {{/each}} -
Extra Tags - {{#each aPlace.extratags}} -
{{this}} ({{@key}})
- {{/each}} -
-
-
-
-
+
+
-
-
-

Address

- - - - - - - - - - - - - - {{#if aPlace.address}} - {{#each aPlace.address}} - {{> partial_details_one_row}} - {{/each}} - {{/if}} + +
+
+

Address

+
Local nameTypeOSMAddress rankAdmin levelDistance
+ + + + + + + + + + + + + {{#if aPlace.address}} + {{#each aPlace.address}} + {{> 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}} - {{/each}} - {{/if}} + {{#if aPlace.linked_places}} + {{> partial_h2 'Linked Places'}} + {{#each aPlace.linked_places}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} + {{/each}} + {{/if}} - {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} - {{#each aPlace.keywords.name}} - {{> partial_details_keyword_one_row}} - {{/each}} + {{#if aPlace.keywords}} + {{> partial_h2 'Name Keywords'}} + {{#each aPlace.keywords.name}} + {{> partial_details_keyword_one_row}} + {{/each}} - {{> partial_h2 'Address Keywords'}} - {{#each aPlace.keywords.address}} - {{> partial_details_keyword_one_row}} - {{/each}} - {{/if}} + {{> partial_h2 'Address Keywords'}} + {{#each aPlace.keywords.address}} + {{> partial_details_keyword_one_row}} + {{/each}} + {{/if}} - {{#if aPlace.hierarchy}} - {{> partial_h2 'Parent Of'}} + {{> partial_h2 'Parent Of'}} + {{#if aPlace.hierarchy}} - {{#each aPlace.hierarchy as |lines type|}} - {{> partial_h3 type}} - {{#each lines}} - {{> partial_details_one_row}} - {{/each}} - {{/each}} - {{/if}} - {{tooManyHierarchyLinesWarning aPlace}} - -
Local nameTypeOSMAddress rankAdmin levelDistance
-
+ {{#each aPlace.hierarchy as |lines type|}} + {{> partial_h3 type}} + {{#each lines}} + {{> partial_details_one_row bDistanceInMeters=true bAddressLineUsed=true}} + {{/each}} + {{/each}} + {{else}} + + + display child places + + + {{/if}} + {{tooManyHierarchyLinesWarning aPlace}} + +
+