From: marc tobias Date: Sun, 23 Feb 2020 01:50:54 +0000 (+0100) Subject: cut templates to 80 line length X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/commitdiff_plain/710a464a6ac3e6b91980928992503a7d763ac820 cut templates to 80 line length --- diff --git a/src/templates/detailspage-index.hbs b/src/templates/detailspage-index.hbs index b2ecf7d..c81d525 100644 --- a/src/templates/detailspage-index.hbs +++ b/src/templates/detailspage-index.hbs @@ -8,16 +8,27 @@

Search by place id

- - + +

Search by OSM type and OSM id

-
- + + @@ -27,8 +38,13 @@

Search by openstreetmap.org URL

- - + + diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs index 8f9ff76..929cf71 100644 --- a/src/templates/detailspage.hbs +++ b/src/templates/detailspage.hbs @@ -38,7 +38,10 @@
-

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

+

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

{{formatMapIcon aPlace.icon}} @@ -51,7 +54,9 @@ Name {{#each aPlace.names}} -
{{this}} ({{@key}})
+
+ {{this}} ({{@key}}) +
{{/each}} @@ -86,14 +91,19 @@ Centre Point (lat,lon) - {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}} + + {{aPlace.centroid.coordinates.[1]}},{{aPlace.centroid.coordinates.[0]}} + OSM {{osmLink aPlace}} - Place Id (on this server) + + Place Id + (on this server) + {{aPlace.place_id}} {{#if aPlace.calculated_wikipedia}} @@ -110,7 +120,9 @@ Address Tags {{#each aPlace.addresstags}} -
{{this}} ({{@key}})
+
+ {{this}} ({{@key}}) +
{{/each}} @@ -118,7 +130,9 @@ Extra Tags {{#each aPlace.extratags}} -
{{this}} ({{@key}})
+
+ {{this}} ({{@key}}) +
{{/each}} @@ -181,7 +195,8 @@ {{else}} - display child places + display child places {{/if}} diff --git a/src/templates/reversepage.hbs b/src/templates/reversepage.hbs index 80bd4bc..43c60f3 100644 --- a/src/templates/reversepage.hbs +++ b/src/templates/reversepage.hbs @@ -10,23 +10,34 @@ {{formatLabel aResult}}

{{aResult.lat}},{{aResult.lon}}

- details + details
{{/inline}}
- + <> - + max zoom
- +
{{/inline}}
- +
@@ -25,7 +31,8 @@ {{/if}}
- +
@@ -45,7 +52,9 @@ {{#if aSearchResults}} {{#if sMoreURL}} {{/if}} {{else}} @@ -58,13 +67,18 @@ {{/if}}