Browse Source

hide submenu when not connected

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
a6feb2f443
  1. 29
      views/layout.pug

29
views/layout.pug

@ -64,22 +64,23 @@ html
div(class="input-group-append") div(class="input-group-append")
button(type="submit", class="btn btn-primary") button(type="submit", class="btn btn-primary")
i(class="fas fa-search") i(class="fas fa-search")
div(id="sub-menu", class="container mb-4", style="margin-top: -1.0rem;") if (host && port)
ul(class="nav") div(id="sub-menu", class="container mb-4", style="margin-top: -1.0rem;")
li(class="nav-item") ul(class="nav")
a(href="/node-status", class="nav-link") Node Status li(class="nav-item")
li(class="nav-item") a(href="/node-status", class="nav-link") Node Status
a(href="/rpc-browser", class="nav-link") RPC Browser li(class="nav-item")
li(class="nav-item") a(href="/rpc-browser", class="nav-link") RPC Browser
a(href="/rpc-terminal", class="nav-link") RPC Terminal li(class="nav-item")
li(class="nav-item") a(href="/rpc-terminal", class="nav-link") RPC Terminal
a(href="/mempool-summary", class="nav-link") Mempool Summary
if (coinConfig.historicalData && coinConfig.historicalData.length > 0)
li(class="nav-item") li(class="nav-item")
a(href="/fun", class="nav-link") #{coinConfig.name} Fun a(href="/mempool-summary", class="nav-link") Mempool Summary
if (coinConfig.historicalData && coinConfig.historicalData.length > 0)
li(class="nav-item")
a(href="/fun", class="nav-link") #{coinConfig.name} Fun
hr hr
div(class="container") div(class="container")
if (userMessage) if (userMessage)

Loading…
Cancel
Save