<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
    <link rel="stylesheet" href="/static/css/bootstrap.5.2.2.min.css">
    <link rel="stylesheet" href="/static/css/main{{.Minified}}.css">
    <script>var hasSecondary={{if .SecondaryCoin}}true{{else}}false{{end}};</script>
    <script src="/static/js/bootstrap.bundle.5.2.2.min.js"></script>
    <script src="/static/js/main{{.Minified}}.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="Trezor {{.CoinLabel}} Explorer">
    <title>Trezor {{.CoinLabel}} Explorer</title>
</head>

<body>
    <header id="header">
        <nav class="navbar navbar-expand-lg">
            <div class="container">
                <a class="navbar-brand" href="/" title="Home">
                    <span class="trezor-logo"></span>
                    <span style="padding-left: 140px;">{{.CoinLabel}} Explorer</span>
                </a>
                {{if .InternalExplorer}}
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <ul class="navbar-nav m-md-auto">
                        <li class="nav-item pe-xl-4">
                            <a href="/blocks" class="nav-link">Blocks</a>
                        </li>
                        <li class="nav-item">
                            <a href="/" class="nav-link">Status</a>
                        </li>
                    </ul>
                    <span class="navbar-form">
                        <form class="d-flex" id="search" action="/search" method="get">
                            <input name="q" type="text" class="form-control form-control-lg" placeholder="Search for block, transaction, address or xpub" focus="true">
                            <button class="btn" type="submit">
                                <span class="search-icon"></span>
                            </button>
                        </form>
                    </span>
                    {{if .SecondaryCoin}}
                    <div class="bb-group ms-lg-2 mt-2 mt-lg-0" role="group" aria-label="Currency switch">
                        <input type="radio" class="btn-check" name="btnradio" id="primary-coin" autocomplete="off"{{if not .UseSecondaryCoin}} checked{{end}}>
                        <label class="btn" for="primary-coin">{{.CoinShortcut}}</label>
                        <input type="radio" class="btn-check" name="btnradio" id="secondary-coin" autocomplete="off"{{if .UseSecondaryCoin}} checked{{end}}>
                        <label class="btn" for="secondary-coin">{{.SecondaryCoin}}</label>
                        <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"></button>
                        <div class="dropdown-menu row">
                            {{range $c := .SecondaryCurrencies}}
                            <div class="col-3"><a href="?secondary={{$c}}&use_secondary=true">{{$c}}</a></div>
                            {{end}}
                        </div>
                    </div>
                    {{end}}
                </div>
                {{end}}
            </div>
        </nav>
    </header>
    <main id="wrap">
        <div class="container">
            {{- template "specific" . -}}
        </div>
    </main>
    <footer id="footer">
        <div class="container">
            <nav class="navbar navbar-dark">
                <span class="navbar-nav">
                    <a class="nav-link" href="https://satoshilabs.com/" target="_blank" rel="noopener noreferrer">Created by SatoshiLabs</a>
                </span>
                <span class="navbar-nav ml-md-auto">
                    <a class="nav-link" href="{{- .TOSLink -}}" target="_blank" rel="noopener noreferrer">Terms of Use</a>
                </span>
                <span class="navbar-nav ml-md-auto d-md-flex d-none">
                    <a class="nav-link" href="https://trezor.io/" target="_blank" rel="noopener noreferrer">Trezor</a>
                </span>
                <span class="navbar-nav ml-md-auto d-md-flex d-none">
                    <a class="nav-link" href="https://trezor.io/trezor-suite" target="_blank" rel="noopener noreferrer">Suite</a>
                </span>
                <span class="navbar-nav ml-md-auto d-md-flex d-none">
                    <a class="nav-link" href="https://trezor.io/support" target="_blank" rel="noopener noreferrer">Support</a>
                </span>
                <span class="navbar-nav ml-md-auto">
                    <a class="nav-link" href="/sendtx">Send Transaction</a>
                </span>
                <span class="navbar-nav ml-md-auto d-lg-flex d-none">
                    <a class="nav-link" href="https://trezor.io/compare" target="_blank" rel="noopener noreferrer">Don't have a Trezor? Get one!</a>
                </span>
            </nav>
        </div>
    </footer>
</body>

</html>