@@ -9,6 +9,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
9
9
alias Algora.Bounties
10
10
alias Algora.Bounties.Bounty
11
11
alias Algora.Github
12
+ alias Algora.Markdown
12
13
alias Algora.Payments
13
14
alias Algora.Repo
14
15
alias Algora.Types.USD
@@ -120,7 +121,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
120
121
class = "group/issue inline-flex flex-col "
121
122
href = { Bounty . url ( bounty ) }
122
123
>
123
- < div class = "flex items-center gap-4 " >
124
+ < div :if = { Bounty . path ( bounty ) } class = "flex items-center gap-4 " >
124
125
< div class = "truncate " >
125
126
< p class = "truncate text-sm font-medium text-gray-300 group-hover/issue:text-gray-200 group-hover/issue:underline " >
126
127
{ Bounty . path ( bounty ) }
@@ -130,6 +131,25 @@ defmodule AlgoraWeb.Org.BountiesLive do
130
131
< p class = "line-clamp-2 break-words text-base font-medium leading-tight text-gray-100 group-hover/issue:text-white group-hover/issue:underline " >
131
132
{ bounty . ticket . title }
132
133
</ p >
134
+ < div :if = { is_nil ( Bounty . path ( bounty ) ) and bounty . ticket . description } >
135
+ < . markdown
136
+ id = { "bounty-description-#{ bounty . id } " }
137
+ class = "line-clamp-3 transition-all duration-200 [&>p]:m-0 "
138
+ phx-hook = "ExpandableText "
139
+ data-expand-id = { "expand-#{ bounty . id } " }
140
+ data-class = "line-clamp-3 "
141
+ value = { Phoenix.HTML . raw ( Markdown . render ( bounty . ticket . description ) ) }
142
+ />
143
+ < button
144
+ id = { "expand-#{ bounty . id } " }
145
+ type = "button "
146
+ class = "text-xs text-foreground font-bold hidden "
147
+ data-content-id = { "bounty-description-#{ bounty . id } " }
148
+ phx-hook = "ExpandableTextButton "
149
+ >
150
+ ...read more
151
+ </ button >
152
+ </ div >
133
153
</ . link >
134
154
< p class = "flex items-center gap-1.5 text-xs text-gray-400 " >
135
155
{ Algora.Util . time_ago ( bounty . inserted_at ) }
@@ -182,7 +202,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
182
202
<% end %>
183
203
</ td >
184
204
< td class = "[&:has([role=checkbox])]:pr-0 p-4 align-middle " >
185
- < div class = "flex items-center gap-2 " >
205
+ < div class = "flex items-center justify-end gap-2 " >
186
206
< . button
187
207
phx-click = "edit-bounty-amount "
188
208
phx-value-id = { bounty . id }
0 commit comments