]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/reverse.html
add a button to display keywords on the details page
[nominatim-ui.git] / dist / reverse.html
index a33aa38cbf21241827f5aafab30732bb2beecd24..d110cb3c5782342af1c11364c33fe2a41d464155 100644 (file)
           <td>Last Updated</td>
           <td>{{aPlace.indexed_date}}</td>
         </tr>
+        {{#if (isAdminBoundary aPlace) }}
         <tr>
           <td>Admin Level</td>
           <td>{{aPlace.admin_level}}</td>
         </tr>
+        {{/if}}
+        <tr>
+          <td>Search Rank</td>
+          <td>{{aPlace.rank_search}}</td>
+        </tr>
         <tr>
-          <td>Rank</td>
-          <td>{{formatSearchRank aPlace.rank_search}}</td>
+          <td>Address Rank</td>
+          <td>{{aPlace.rank_address}} ({{formatAddressRank aPlace.rank_address}})</td>
         </tr>
         {{#if aPlace.calculated_importance}}
           <tr>
             {{/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}}
+            <tr>
+              <td>
+                <a class="btn btn-outline-secondary btn-sm"
+                  href="{{base_url}}&keywords=1">display keywords</a>
+              </td>
+            </tr>
           {{/if}}
 
           {{> partial_h2 'Parent Of'}}