Skip to content

Commit 7317b0d

Browse files
committed
misc fixes
1 parent a475a9f commit 7317b0d

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

lib/algora/bounties/schemas/bounty.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ defmodule Algora.Bounties.Bounty do
6868
Algora.Util.path_from_url(url)
6969
end
7070

71+
def path(_bounty), do: nil
72+
7173
def full_path(%{repository: %{name: name, owner: %{login: login}}, ticket: %{number: number}}) do
7274
"#{login}/#{name}##{number}"
7375
end

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
7979

8080
{:ok,
8181
socket
82+
|> assign(:ip_address, AlgoraWeb.Util.get_ip(socket))
8283
|> assign(:admins_last_active, admins_last_active)
8384
|> assign(:has_fresh_token?, Accounts.has_fresh_token?(socket.assigns.current_user))
8485
|> assign(:installations, installations)
@@ -133,7 +134,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
133134

134135
{:noreply,
135136
socket
136-
|> assign(:ip_address, AlgoraWeb.Util.get_ip(socket))
137137
|> assign(:current_status, current_status)
138138
|> assign(:bounty_rows, to_bounty_rows(bounties))
139139
|> assign(:transaction_rows, to_transaction_rows(transactions))

lib/algora_web/live/org/home_live.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ defmodule AlgoraWeb.Org.HomeLive do
192192
{ticket.title}
193193
</.link>
194194
195-
<div class="flex shrink-0 items-center gap-1 whitespace-nowrap text-sm text-muted-foreground">
195+
<div
196+
:if={ticket.repository || ticket.url}
197+
class="flex shrink-0 items-center gap-1 whitespace-nowrap text-sm text-muted-foreground"
198+
>
196199
<.icon name="tabler-chevron-right" class="h-4 w-4" />
197200
<.link
198201
href={

lib/algora_web/live/user/profile_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ defmodule AlgoraWeb.User.ProfileLive do
138138
{ticket.repository.name}#{ticket.number}
139139
</.link>
140140
<.link
141-
:if={!ticket.repository}
141+
:if={!ticket.repository && ticket.url}
142142
href={ticket.url}
143143
class="hover:underline"
144144
>

0 commit comments

Comments
 (0)