Full-row click navigation in "Contacts I'm in"
Clicking anywhere in a row on the /u/:callsign involving-contacts table now navigates to that contact's detail page, matching the click affordance on the main /contacts list.
This commit is contained in:
parent
47e956b0e4
commit
47b104e3cf
1 changed files with 7 additions and 5 deletions
|
|
@ -171,14 +171,16 @@ defmodule MicrowavepropWeb.UserProfileLive do
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr :for={contact <- @involving} class="hover">
|
||||
<tr
|
||||
:for={contact <- @involving}
|
||||
class="hover cursor-pointer"
|
||||
phx-click={JS.navigate(~p"/contacts/#{contact.id}")}
|
||||
>
|
||||
<td class="whitespace-nowrap">
|
||||
{Calendar.strftime(contact.qso_timestamp, "%Y-%m-%d %H:%M UTC")}
|
||||
</td>
|
||||
<td>
|
||||
<.link navigate={~p"/contacts/#{contact.id}"} class="link link-hover font-mono">
|
||||
{contact.station1} ↔ {contact.station2}
|
||||
</.link>
|
||||
<td class="font-mono">
|
||||
{contact.station1} ↔ {contact.station2}
|
||||
</td>
|
||||
<td>{contact.band && "#{contact.band} MHz"}</td>
|
||||
<td>{contact.mode}</td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue