Skip to content

Commit e22ad9e

Browse files
committed
fix: bounties page
1 parent 88f61a8 commit e22ad9e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/algora_web/live/org/bounties_live.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
33
use AlgoraWeb, :live_view
44

55
alias Algora.Bounties
6+
alias Algora.Bounties.Bounty
67

78
on_mount AlgoraWeb.Org.BountyHook
89

@@ -21,7 +22,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
2122

2223
def render(assigns) do
2324
~H"""
24-
<div class="max-w-7xl p-6">
25+
<div class="max-w-7xl mx-auto p-6">
2526
<div class="mb-6">
2627
<div class="flex flex-wrap items-start justify-between gap-4 lg:flex-nowrap">
2728
<div>
@@ -119,19 +120,19 @@ defmodule AlgoraWeb.Org.BountiesLive do
119120
<div class="flex items-start justify-between">
120121
<div class="cursor-pointer font-mono text-2xl">
121122
<div class="font-extrabold text-emerald-300 hover:text-emerald-200">
122-
${bounty.amount}
123+
{Money.to_string!(bounty.amount)}
123124
</div>
124125
</div>
125126
</div>
126127
<.link
127128
rel="noopener"
128129
class="group/issue inline-flex flex-col"
129-
href={"https://github.com/#{bounty.ticket.owner}/#{bounty.ticket.repo}/issues/#{bounty.ticket.number}"}
130+
href={Bounty.url(bounty)}
130131
>
131132
<div class="flex items-center gap-4">
132133
<div class="truncate">
133134
<p class="truncate text-sm font-medium text-gray-300 group-hover/issue:text-gray-200 group-hover/issue:underline">
134-
{bounty.ticket.owner}/{bounty.ticket.repo}#{bounty.ticket.number}
135+
{Bounty.path(bounty)}
135136
</p>
136137
</div>
137138
</div>

0 commit comments

Comments
 (0)