@@ -259,18 +259,30 @@ defmodule AlgoraWeb.ContractLive do
259259 </ div >
260260 < div >
261261 < h1 class = "text-2xl font-semibold " >
262- Contract with { @ contractor . name }
262+ { @ bounty . ticket . title }
263263 </ h1 >
264- < p class = "text-sm text-muted-foreground " >
265- Started { Calendar . strftime ( @ bounty . inserted_at , "%b %d, %Y" ) }
266- </ p >
264+ < div class = "text-sm text-muted-foreground space-x-2 " >
265+ < span > Created { Calendar . strftime ( @ bounty . inserted_at , "%b %d, %Y" ) } </ span >
266+ < span
267+ :if = { @ bounty . hours_per_week && @ bounty . hours_per_week > 0 }
268+ class = "space-x-2 "
269+ >
270+ < span > •</ span >
271+ < span >
272+ < . icon name = "tabler-clock " class = "h-4 w-4 " />
273+ { @ bounty . hours_per_week } hours per week
274+ </ span >
275+ </ span >
276+ </ div >
267277 </ div >
268278 </ div >
269279
270280 < div class = "flex flex-col gap-4 " >
271281 < div class = "font-display tabular-nums text-5xl text-success-400 font-bold " >
272- { Money . to_string! ( @ bounty . amount ) }
273- < span :if = { @ bounty . hours_per_week && @ bounty . hours_per_week > 0 } class = "text-base " >
282+ { Money . to_string! ( @ bounty . amount ) } < span
283+ :if = { @ bounty . hours_per_week && @ bounty . hours_per_week > 0 }
284+ class = "text-base "
285+ >
274286 /wk
275287 </ span >
276288 </ div >
@@ -287,7 +299,7 @@ defmodule AlgoraWeb.ContractLive do
287299 Description
288300 </ . card_title >
289301 </ . card_header >
290- < . card_content >
302+ < . card_content class = " pt-0 " >
291303 < div class = "prose prose-invert " >
292304 { Phoenix.HTML . raw ( @ ticket_body_html ) }
293305 </ div >
@@ -306,13 +318,16 @@ defmodule AlgoraWeb.ContractLive do
306318 { Util . initials ( @ contractor . name ) }
307319 </ . avatar_fallback >
308320 </ . avatar >
309- < div class = "absolute right-0 bottom-0 h-3 w-3 rounded-full border-2 border-background bg-success " >
310- </ div >
321+ <%!-- < div class="absolute right-0 bottom-0 h-3 w-3 rounded-full border-2 border-background bg-success">
322+ </div> --%>
311323 </ div >
312324 < div >
313325 < h2 class = "text-lg font-semibold " > { @ contractor . name } </ h2 >
314- < p class = "text-xs text-muted-foreground " >
315- <%!-- Active {Util.time_ago(@contractor.last_active_at)} --%>
326+ < p :if = { @ contractor . last_active_at } class = "text-xs text-muted-foreground " >
327+ Active { Util . time_ago ( @ contractor . last_active_at ) }
328+ </ p >
329+ < p :if = { ! @ contractor . last_active_at } class = "text-xs text-muted-foreground " >
330+ Offline
316331 </ p >
317332 </ div >
318333 </ div >
0 commit comments