]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/reverse.html
/reverse.html should be reverse.html to app works in subdirectory
[nominatim-ui.git] / dist / reverse.html
index 14788099dfe9350b036451943e01d667066b3c73..55023c0b4e6415cbd8a59931274beae497440273 100644 (file)
     </li>
     <div class="search-type-link">
       <a href="details.html" class="mr-2">search by id</a>
-      <a id="switch-to-reverse" href="/reverse.html">reverse search</a>
+      <a id="switch-to-reverse" href="reverse.html">reverse search</a>
     </div>
   </ul>
   <div class="tab-content p-2">
           <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>
             {{/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'}}