]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/detailspage.hbs
cut templates to 80 line length
[nominatim-ui.git] / dist / detailspage.hbs
index 6fa2886efd921e142c0c763d4c4a546a25a1a4f0..8f9ff76af9e54b9dd26902c30636897369075f39 100644 (file)
@@ -13,7 +13,7 @@
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance}}</td>
-    <td>{{detailsLink this null}}</td>
+    <td>{{detailsPermaLink this 'details >'}}</td>
   </tr>
 {{/inline}}
 
           <td>OSM</td>
           <td>{{osmLink aPlace}}
         </tr>
+        <tr>
+          <td>Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td>
+          <td>{{aPlace.place_id}}</td>
+        </tr>
         {{#if aPlace.calculated_wikipedia}}
           <tr>
             <td>Wikipedia Calculated</td>
             {{/each}}
           {{/if}}
 
+          {{> partial_h2 'Parent Of'}}
           {{#if aPlace.hierarchy}}
-            {{> partial_h2 'Parent Of'}}
 
             {{#each aPlace.hierarchy as |lines type|}}
               {{> partial_h3 type}}
                 {{> partial_details_one_row}}
               {{/each}}
             {{/each}}
+          {{else}}
+            <tr>
+              <td>
+                <a class="btn btn-default btn-xs" href="{{base_url}}&hierarchy=1">display child places</a>
+              </td>
+            </tr>
           {{/if}}
           {{tooManyHierarchyLinesWarning aPlace}}
         </tbody>