From: Sarah Hoffmann Date: Wed, 2 Dec 2020 14:49:14 +0000 (+0100) Subject: add a button to display keywords on the details page X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/e322758be287af4362499df4c8b6703eb0bcda18 add a button to display keywords on the details page --- diff --git a/dist/deletable.html b/dist/deletable.html index 16ebbc2..d110cb3 100644 --- a/dist/deletable.html +++ b/dist/deletable.html @@ -530,16 +530,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}} diff --git a/dist/details.html b/dist/details.html index 16ebbc2..d110cb3 100644 --- a/dist/details.html +++ b/dist/details.html @@ -530,16 +530,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}} diff --git a/dist/polygons.html b/dist/polygons.html index 16ebbc2..d110cb3 100644 --- a/dist/polygons.html +++ b/dist/polygons.html @@ -530,16 +530,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}} diff --git a/dist/reverse.html b/dist/reverse.html index 16ebbc2..d110cb3 100644 --- a/dist/reverse.html +++ b/dist/reverse.html @@ -530,16 +530,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}} diff --git a/dist/search.html b/dist/search.html index 16ebbc2..d110cb3 100644 --- a/dist/search.html +++ b/dist/search.html @@ -530,16 +530,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}} diff --git a/src/templates/detailspage.hbs b/src/templates/detailspage.hbs index 85ad950..d572eaa 100644 --- a/src/templates/detailspage.hbs +++ b/src/templates/detailspage.hbs @@ -177,16 +177,24 @@ {{/each}} {{/if}} + {{> partial_h2 'Keywords'}} {{#if aPlace.keywords}} - {{> partial_h2 'Name Keywords'}} + {{> partial_h3 'Name Keywords'}} {{#each aPlace.keywords.name}} {{> partial_details_keyword_one_row}} {{/each}} - {{> partial_h2 'Address Keywords'}} + {{> partial_h3 'Address Keywords'}} {{#each aPlace.keywords.address}} {{> partial_details_keyword_one_row}} {{/each}} + {{else}} + + + display keywords + + {{/if}} {{> partial_h2 'Parent Of'}}