Add inserted_at column to contacts table
This commit is contained in:
parent
e107706915
commit
95a2afaa01
1 changed files with 4 additions and 1 deletions
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue