~ihabunek/triglav

ref: 3a62b8feb3be418cf9f3fb176ac6c84a36e66a2f triglav/lib/triglav_web/templates/home/data.html.eex -rw-r--r-- 1.5 KiB
3a62b8feIvan Habunek Validate tags on platforms 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<style>
  .bl { border-left: 1px dotted gray }
</style>

<main role="main" class="container">
  <h1>Data overview</h1>

  <h2>OSM updates</h2>

  <p>Data is updated daily from Geofabrik.</p>

  <table class="w-full">
    <thead>
      <tr>
        <th rowspan="2">Updated at</th>
        <th colspan="3" class="bl">Nodes</th>
        <th colspan="3" class="bl">Ways</th>
        <th colspan="3" class="bl">Relations</th>
        <th rowspan="2" class="bl">Earliest timestamp</th>
        <th rowspan="2">Latest timestamp</th>
      </tr>
      <tr>
        <th class="bl">Add</th>
        <th>Del</th>
        <th>Mod</th>
        <th class="bl">Add</th>
        <th>Del</th>
        <th>Mod</th>
        <th class="bl">Add</th>
        <th>Del</th>
        <th>Mod</th>
      </tr>
    </thead>
    <tbody>
      <%= for changes <- @replication_changes do %>
      <tr>
        <td><%= changes.tstamp %></td>
        <td class="bl"><%= changes.nodes_added %></td>
        <td><%= changes.nodes_deleted %></td>
        <td><%= changes.nodes_modified %></td>
        <td class="bl"><%= changes.ways_added %></td>
        <td><%= changes.ways_deleted %></td>
        <td><%= changes.ways_modified %></td>
        <td class="bl"><%= changes.relations_added %></td>
        <td><%= changes.relations_deleted %></td>
        <td><%= changes.relations_modified %></td>
        <td class="bl"><%= changes.earliest_timestamp %></td>
        <td><%= changes.latest_timestamp %></td>
      </tr>
      <% end %>
    </tbody>
  </table>

</main>