|
20 | 20 | <link rel="shortcut icon" href="{[{ .favicon }]}" /> |
21 | 21 | <link href ="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel ="stylesheet" integrity ="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin ="anonymous"> |
22 | 22 | <link rel="stylesheet" href="/resources/site.css"/> |
| 23 | + {[{ if .brand }]} |
23 | 24 | <style type="text/css"> |
| 25 | + .watermark-brand { |
| 26 | + background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='100px' width='300px' opacity='0.1'><text transform='translate(20, 100) rotate(-25)' fill='rgb(245,45,45)' font-size='46'>{[{ .brand }]}</text></svg>"); |
| 27 | + } |
24 | 28 | </style> |
| 29 | + {[{ end }]} |
25 | 30 | </head> |
26 | | -<body> |
| 31 | +<body class="watermark-brand"> |
27 | 32 | <div id="main" class="container"> |
28 | 33 | <h3 class="mt-3">{[{ .description }]}</h3> |
29 | 34 | {[{ if .logo }]} |
|
69 | 74 | </h3> |
70 | 75 | <div id="collapseAddrbook" class="accordion-collapse collapse show" aria-labelledby="headingAddrbook" data-bs-parent="#accordionMain"> |
71 | 76 | <div class="card card-body"> |
| 77 | + {[{ if gt .livePeersCount 0 }]} |
72 | 78 | <p>Download: <a href="/download/addrbook.json">addrbook.json</a></p> |
73 | 79 | <pre class="border p-2"><code>wget -O addrbook.json https://{[{ .host }]}/download/addrbook.json --inet4-only |
74 | 80 | mv addrbook.json $HOME/{[{ .generalNodeHomeName }]}/config</code></pre> |
| 81 | + {[{ else }]} |
| 82 | + <h3 class="text-danger">Addrbook temporary not available</h3> |
| 83 | + {[{ end }]} |
75 | 84 | </div> |
76 | 85 | </div> |
77 | 86 | </div> |
@@ -162,7 +171,7 @@ s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \ |
162 | 171 | s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \ |
163 | 172 | s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/{[{ .generalNodeHomeName }]}/config/config.toml</code></pre> |
164 | 173 | {[{ if gt .livePeersCount 0 }]} |
165 | | - <p>Consider adding {[{ .livePeersCount }]} live-peers above to <b>`persistent_peers`</b> in <b>`config.toml`</b></p> |
| 174 | + <p>Consider adding {[{ .livePeersCount }]} live-peers above to <b>`persistent_peers`</b> in <b>`config.toml`</b> and download <b>`addrbook.json`</b></p> |
166 | 175 | {[{ end }]} |
167 | 176 | <p>Stop the node</p> |
168 | 177 | <pre class="border p-2"><code>sudo systemctl stop {[{ .generalBinaryName }]}</code></pre> |
|
0 commit comments