Skip to content

Commit be17aef

Browse files
committed
feat: add more info in match card on job page
1 parent a0cef3b commit be17aef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/algora_web/live/org/job_live.ex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ defmodule AlgoraWeb.Org.JobLive do
364364
<%= for match <- @truncated_matches do %>
365365
<div>
366366
<.match_card
367+
current_user={@current_user}
367368
user={match.user}
368369
tech_stack={@job.tech_stack |> Enum.take(1)}
369370
contributions={Map.get(@contributions_map, match.user.id, [])}
@@ -409,6 +410,7 @@ defmodule AlgoraWeb.Org.JobLive do
409410
<%= for stargazer <- @stargazers do %>
410411
<div>
411412
<.match_card
413+
current_user={@current_user}
412414
user={stargazer.user}
413415
tech_stack={@job.tech_stack |> Enum.take(1)}
414416
contributions={Map.get(@contributions_map, stargazer.user.id, [])}
@@ -1168,6 +1170,11 @@ defmodule AlgoraWeb.Org.JobLive do
11681170
<span :if={@user.country}>
11691171
{Algora.Misc.CountryEmojis.get(@user.country)}
11701172
</span>
1173+
<%= if @current_user && @current_user.is_admin && @user.provider_meta["hireable"] do %>
1174+
<.badge variant="success">
1175+
Hireable
1176+
</.badge>
1177+
<% end %>
11711178
</.link>
11721179
</div>
11731180
<div
@@ -1194,6 +1201,12 @@ defmodule AlgoraWeb.Org.JobLive do
11941201
{@user.provider_meta["twitter_handle"]}
11951202
</span>
11961203
</.link>
1204+
<div :if={@user.provider_meta["location"]} class="flex items-center gap-1">
1205+
<.icon name="tabler-map-pin" class="shrink-0 h-4 w-4" />
1206+
<span class="line-clamp-1">
1207+
{@user.provider_meta["location"]}
1208+
</span>
1209+
</div>
11971210
</div>
11981211
</div>
11991212
</div>

0 commit comments

Comments
 (0)