@@ -243,7 +243,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
243
243
class = "group/issue inline-flex flex-col "
244
244
href = { Bounty . url ( bounty ) }
245
245
>
246
- < div class = "flex items-center gap-4 " >
246
+ < div :if = { Bounty . path ( bounty ) } class = "flex items-center gap-4 " >
247
247
< div class = "truncate " >
248
248
< p class = "truncate text-sm font-medium text-gray-300 group-hover/issue:text-gray-200 group-hover/issue:underline " >
249
249
{ Bounty . path ( bounty ) }
@@ -350,31 +350,42 @@ defmodule AlgoraWeb.Org.DashboardLive do
350
350
</ div >
351
351
</ . section >
352
352
353
- < . section
354
- :if = { @ contributors != [ ] }
355
- title = { "#{ header_prefix ( @ previewed_user ) } Contributors" }
356
- subtitle = "Share bounties, tips or contract opportunities with your top contributors "
357
- >
358
- < div class = "relative w-full overflow-auto max-h-[250px] scrollbar-thin " >
359
- < table class = "w-full caption-bottom text-sm " >
360
- < tbody >
361
- <%= for % Contributor { user: user } <- @ contributors do %>
362
- < . developer_card
363
- user = { user }
364
- contract_for_user = { contract_for_user ( @ contracts , user ) }
365
- contract_type = {
366
- if ( Enum . find ( @ matches , & ( & 1 . user . id == user . id ) ) ,
367
- do: "marketplace" ,
368
- else: "bring_your_own"
369
- )
370
- }
371
- current_org = { @ current_org }
372
- />
373
- <% end %>
374
- </ tbody >
375
- </ table >
376
- </ div >
377
- </ . section >
353
+ <%= if @ previewed_user . id == "xT2oJ8z7wTHWgs8g" do %>
354
+ < . section title = { "#{ header_prefix ( @ previewed_user ) } Candidates" } >
355
+ < . link href = { "/#{ @ previewed_user . handle } /candidates" } >
356
+ < img
357
+ src = { "/og/#{ @ previewed_user . handle } /candidates" }
358
+ class = "aspect-[1200/630] w-full object-cover border border-border rounded-xl "
359
+ />
360
+ </ . link >
361
+ </ . section >
362
+ <% else %>
363
+ < . section
364
+ :if = { @ contributors != [ ] }
365
+ title = { "#{ header_prefix ( @ previewed_user ) } Contributors" }
366
+ subtitle = "Share bounties, tips or contract opportunities with your top contributors "
367
+ >
368
+ < div class = "relative w-full overflow-auto max-h-[250px] scrollbar-thin " >
369
+ < table class = "w-full caption-bottom text-sm " >
370
+ < tbody >
371
+ <%= for % Contributor { user: user } <- @ contributors do %>
372
+ < . developer_card
373
+ user = { user }
374
+ contract_for_user = { contract_for_user ( @ contracts , user ) }
375
+ contract_type = {
376
+ if ( Enum . find ( @ matches , & ( & 1 . user . id == user . id ) ) ,
377
+ do: "marketplace" ,
378
+ else: "bring_your_own"
379
+ )
380
+ }
381
+ current_org = { @ current_org }
382
+ />
383
+ <% end %>
384
+ </ tbody >
385
+ </ table >
386
+ </ div >
387
+ </ . section >
388
+ <% end %>
378
389
379
390
< div
380
391
:if = { length ( @ achievements ) > 1 }
0 commit comments