]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/details.html
max line length for javascript = 100
[nominatim-ui.git] / dist / details.html
index deaa97969b966d713dec873c2455a53c55732116..8aa00cd68f6de02e54822ce6c9be7515ac53ad29 100644 (file)
             About &amp; Help <span class="caret"></span>
           </button>
           <ul class="dropdown-menu dropdown-menu-right">
             About &amp; Help <span class="caret"></span>
           </button>
           <ul class="dropdown-menu dropdown-menu-right">
-            <li><a href="https://wiki.openstreetmap.org/wiki/Nominatim" target="_blank">Documentation</a></li>
-            <li><a href="https://wiki.openstreetmap.org/wiki/Nominatim/FAQ" target="_blank">FAQ</a></li>
+            <li><a href="https://nominatim.org/release-docs/develop/api/Overview/" target="_blank">API Reference</a></li>
+            <li><a href="https://nominatim.org/release-docs/develop/api/Faq/" target="_blank">FAQ</a></li>
+            <li><a href="https://help.openstreetmap.org/tags/nominatim/">OpenStreetMap Help</a></li>
+            <li><a href="https://github.com/openstreetmap/Nominatim">Nominatim on Github</a></li>
             <li role="separator" class="divider"></li>
             <li><a href="#" class="" data-toggle="modal" data-target="#report-modal">Report problem with results</a></li>
           </ul>
             <li role="separator" class="divider"></li>
             <li><a href="#" class="" data-toggle="modal" data-target="#report-modal">Report problem with results</a></li>
           </ul>
         </div>
         <div class="modal-body">
           <p>
         </div>
         <div class="modal-body">
           <p>
-            Before reporting problems please read the <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Nominatim">user documentation</a>
+            Before reporting problems please read the <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Overview/">user documentation</a>
             and
             and
-            <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Nominatim/FAQ">FAQ</a>.
+            <a target="_blank" href="https://nominatim.org/release-docs/develop/api/Faq/">FAQ</a>.
 
             If your problem relates to the address of a particular search result please use the 'details' link 
             to check how the address was generated before reporting a problem.
           </p>
           <p>
 
             If your problem relates to the address of a particular search result please use the 'details' link 
             to check how the address was generated before reporting a problem.
           </p>
           <p>
-            Use <a target="_blank" href="https://github.com/openstreetmap/nominatim/issues">Nominatim issues on github</a>
+            Use <a target="_blank" href="https://github.com/openstreetmap/Nominatim/issues">Nominatim issues on github</a>
             to report problems.
           </p>
           <p>
             to report problems.
           </p>
           <p>
     <td>{{this.rank_address}}</td>
     <td>{{formatAdminLevel this.admin_level}}</td>
     <td>{{formatDistance this.distance}}</td>
     <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}}
 
   </tr>
 {{/inline}}
 
             {{/each}}
           {{/if}}
 
             {{/each}}
           {{/if}}
 
+          {{> partial_h2 'Parent Of'}}
           {{#if aPlace.hierarchy}}
           {{#if aPlace.hierarchy}}
-            {{> partial_h2 'Parent Of'}}
 
             {{#each aPlace.hierarchy as |lines type|}}
               {{> partial_h3 type}}
 
             {{#each aPlace.hierarchy as |lines type|}}
               {{> partial_h3 type}}
                 {{> partial_details_one_row}}
               {{/each}}
             {{/each}}
                 {{> 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>
           {{/if}}
           {{tooManyHierarchyLinesWarning aPlace}}
         </tbody>