Skip to content

Commit

Permalink
chore: Moving local vars from templ file to vars.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ditatompel committed Nov 15, 2024
1 parent ecfee86 commit 56b445d
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 95 deletions.
14 changes: 0 additions & 14 deletions internal/handler/views/remote_nodes.templ
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ import (
"time"
)

var nettypes = []string{"mainnet", "stagenet", "testnet"}
var protocols = []string{"tor", "i2p", "http", "https"}

type nodeStatus struct {
Code int
Text string
}

var nodeStatuses = []nodeStatus{
{-1, "ANY"},
{1, "Online"},
{0, "Offline"},
}

templ RemoteNodes(data monero.Nodes, countries []monero.Countries, q monero.QueryNodes, p paging.Pagination) {
<!-- Hero -->
<section class="relative overflow-hidden pt-6">
Expand Down
Loading

0 comments on commit 56b445d

Please sign in to comment.