Add Committed column to QSOs table showing inserted_at
This commit is contained in:
parent
fe3c8812a0
commit
47456630ff
2 changed files with 5 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ defmodule Microwaveprop.Radio do
|
|||
alias Microwaveprop.Repo
|
||||
|
||||
@per_page 20
|
||||
@sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp)a
|
||||
@sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp inserted_at)a
|
||||
|
||||
def list_qsos(opts \\ []) do
|
||||
page = max(Keyword.get(opts, :page, 1), 1)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ defmodule MicrowavepropWeb.QsoLive.Index do
|
|||
|
||||
alias Microwaveprop.Radio
|
||||
|
||||
@sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp)
|
||||
@sortable_fields ~w(station1 station2 band mode distance_km qso_timestamp inserted_at)
|
||||
@default_sort_by "qso_timestamp"
|
||||
@default_sort_order "desc"
|
||||
|
||||
|
|
@ -88,6 +88,9 @@ defmodule MicrowavepropWeb.QsoLive.Index do
|
|||
<:col :let={qso} label="Timestamp" sort_field="qso_timestamp">
|
||||
{Calendar.strftime(qso.qso_timestamp, "%Y-%m-%d %H:%M")}
|
||||
</:col>
|
||||
<:col :let={qso} label="Committed" sort_field="inserted_at">
|
||||
{Calendar.strftime(qso.inserted_at, "%Y-%m-%d %H:%M")}
|
||||
</:col>
|
||||
</.table>
|
||||
|
||||
<div class="flex items-center justify-between pt-4">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue