File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
3
3
use AlgoraWeb , :live_view
4
4
5
5
alias Algora.Bounties
6
+ alias Algora.Bounties.Bounty
6
7
7
8
on_mount AlgoraWeb.Org.BountyHook
8
9
@@ -21,7 +22,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
21
22
22
23
def render ( assigns ) do
23
24
~H"""
24
- < div class = "max-w-7xl p-6 " >
25
+ < div class = "max-w-7xl mx-auto p-6 " >
25
26
< div class = "mb-6 " >
26
27
< div class = "flex flex-wrap items-start justify-between gap-4 lg:flex-nowrap " >
27
28
< div >
@@ -119,19 +120,19 @@ defmodule AlgoraWeb.Org.BountiesLive do
119
120
< div class = "flex items-start justify-between " >
120
121
< div class = "cursor-pointer font-mono text-2xl " >
121
122
< div class = "font-extrabold text-emerald-300 hover:text-emerald-200 " >
122
- $ { bounty . amount }
123
+ { Money . to_string! ( bounty . amount ) }
123
124
</ div >
124
125
</ div >
125
126
</ div >
126
127
< . link
127
128
rel = "noopener "
128
129
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 ) }
130
131
>
131
132
< div class = "flex items-center gap-4 " >
132
133
< div class = "truncate " >
133
134
< 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 ) }
135
136
</ p >
136
137
</ div >
137
138
</ div >
You can’t perform that action at this time.
0 commit comments