]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/pages/PolygonsPage.svelte
svelte 4.x => 5.0
[nominatim-ui.git] / src / pages / PolygonsPage.svelte
index e61d89a09035d9ce3a03276c2883df887ce47ec0..79efe7221ba4e470b9017a9eeb98ba4bf3cf7bb1 100644 (file)
@@ -3,6 +3,8 @@
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
   import { formatOSMType, osmLink } from '../lib/helpers.js';
 
+  import Header from '../components/Header.svelte';
+
   let aPolygons = [];
 
   function loaddata() {
@@ -14,7 +16,7 @@
   onMount(loaddata);
 </script>
 
-
+<Header/>
 <div class="container">
   <div class="row">
     <div class="col-sm-12">
 
       <table class="table table-striped table-hover">
         <thead>
-          <th>OSM type</th>
-          <th>OSM id</th>
-          <th>Class</th>
-          <th>Type</th>
-          <th>Name</th>
-          <th>Country Code</th>
-          <th>Error message</th>
-          <th>Updated</th>
-          <th></th>
+          <tr>
+            <th>OSM object</th>
+            <th>Class</th>
+            <th>Type</th>
+            <th>Name</th>
+            <th>Country Code</th>
+            <th>Error message</th>
+            <th>Updated</th>
+            <th></th>
+          </tr>
         </thead>
         <tbody>
           {#each aPolygons as polygon}
             <tr>
-              <td>{polygon.osm_type}</td>
+              <!-- eslint-disable-next-line svelte/no-at-html-tags -->
               <td>{@html osmLink(polygon)}</td>
               <td>{polygon.class}</td>
               <td>{polygon.type}</td>