Skip to content

Commit

Permalink
remove broken sever list links
Browse files Browse the repository at this point in the history
  • Loading branch information
maddalax committed Nov 27, 2024
1 parent 736ca5b commit ef8dcff
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions app/ui/sidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func DesktopSidebar(ctx *h.RequestContext) *h.Element {
),
RoutingSection(),
ResourceList(ctx),
ServerList(ctx),
DebugSection(),
),
),
Expand Down Expand Up @@ -114,7 +113,6 @@ func MobileSidebar(ctx *h.RequestContext) *h.Element {
),
RoutingSection(),
ResourceList(ctx),
ServerList(ctx),
DebugSection(),
),
),
Expand Down Expand Up @@ -155,37 +153,6 @@ func ResourceList(ctx *h.RequestContext) *h.Element {
)
}

func ServerList(ctx *h.RequestContext) *h.Element {
list, err := app.ServerList(ctx.ServiceLocator())

if err != nil {
list = []*app.Server{}
}

return h.Div(
h.Class("flex flex-col gap-2"),
h.Div(
h.Class("flex justify-between items-center"),
h.P(
h.Text("Servers"),
h.Class("text-slate-800 font-bold"),
),
),
h.Div(
h.Class("flex flex-col gap-2"),
h.List(list, func(server *app.Server, index int) *h.Element {
return h.A(
h.Href(urls.ServerUrl(server.Id)),
h.Text(
h.Ternary(server.Name != "", server.Name, server.HostName),
),
h.Class("text-slate-900 hover:text-brand-400"),
)
}),
),
)
}

func RoutingSection() *h.Element {

links := []Page{
Expand Down

0 comments on commit ef8dcff

Please sign in to comment.