Add inserted_at column to contacts table

This commit is contained in:
Graham McIntire 2026-04-04 10:51:39 -05:00
parent e107706915
commit 95a2afaa01
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -113,12 +113,13 @@ defmodule MicrowavepropWeb.ContactLive.Index do
<th>Distance (km)</th>
<th>Submitted</th>
<th>Timestamp</th>
<th>Added</th>
</tr>
</thead>
<tbody>
<%= for {primary, reciprocals} <- @grouped_contacts do %>
<tr class="h-1">
<td colspan="10"></td>
<td colspan="11"></td>
</tr>
<tr
class={[
@ -145,6 +146,7 @@ defmodule MicrowavepropWeb.ContactLive.Index do
<td>{primary.distance_km}</td>
<td>{if primary.user_submitted, do: "Yes", else: ""}</td>
<td>{Calendar.strftime(primary.qso_timestamp, "%Y-%m-%d %H:%M")}</td>
<td>{Calendar.strftime(primary.inserted_at, "%Y-%m-%d %H:%M")}</td>
</tr>
<%= for recip <- reciprocals do %>
<tr
@ -161,6 +163,7 @@ defmodule MicrowavepropWeb.ContactLive.Index do
<td>{recip.distance_km}</td>
<td>{if recip.user_submitted, do: "Yes", else: ""}</td>
<td>{Calendar.strftime(recip.qso_timestamp, "%Y-%m-%d %H:%M")}</td>
<td>{Calendar.strftime(recip.inserted_at, "%Y-%m-%d %H:%M")}</td>
</tr>
<% end %>
<% end %>