From e322758be287af4362499df4c8b6703eb0bcda18 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 2 Dec 2020 15:49:14 +0100 Subject: [PATCH] add a button to display keywords on the details page --- dist/deletable.html | 12 ++++++++++-- dist/details.html | 12 ++++++++++-- dist/polygons.html | 12 ++++++++++-- dist/reverse.html | 12 ++++++++++-- dist/search.html | 12 ++++++++++-- src/templates/detailspage.hbs | 12 ++++++++++-- 6 files changed, 60 insertions(+), 12 deletions(-) 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'}} -- 2.39.5