<template name="header">
    <nav class="navbar navbar-default" id="header">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">Musare</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="overflow-y: hidden">
                <ul class="nav navbar-nav">
                    <!--li class="active"><a href="">Link <span class="sr-only">(current)</span></a></li-->
                    <li class="{{isActivePath '/'}}"><a href="/">Home</a></li>
                    {{#if isAdmin}}
                        <li class="{{isActivePath '/admin'}}"><a href="/admin">Admin</a></li>
                    {{/if}}
                </ul>
                {{#if currentUser}}
                  <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{currentUser.profile.username}} <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/u/{{currentUser.profile.username}}">Profile</a></li>
                            <li><a href="#">Settings</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a class="logout" href="#">Logout</a></li>
                        </ul>
                    </li>
                      <li>
                          <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
                              <input type="hidden" name="cmd" value="_s-xclick">
                              <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHJwYJKoZIhvcNAQcEoIIHGDCCBxQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDA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X8i59+Sl6uMvp1/V0p3JbMOC9CoenHMjfTk0VgaDe3N5gLSeSTdXbXvqcSJeICgFpAazwTZqWw8bPlSb4zcTXG2yYQ=-----END PKCS7-----
                        ">
                              <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal ? The safer, easier way to pay online.">
                              <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
                          </form>
                      </li>
                  </ul>
                  {{else}}
                    <ul class="nav navbar-nav navbar-right">
                      <li><a href="/login" class="navbar-right">Login</a></li>
                      <li><a href="/signup" class="navbar-right">Sign Up</a></li>
                      <li>
                          <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
                          <input type="hidden" name="cmd" value="_s-xclick">
                          <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHJwYJKoZIhvcNAQcEoIIHGDCCBxQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAhrWb0Tb/7LMO2EwEON/CrFnUxm+hRHK5uathL8H+4YUHDO3JYU3Lp810M7HkEc19sacQAdWI/oKudnxW3inRA60CYP7UKqSzPOt678sE4p6WcamYunQ5WbuOEvOrqTqlaPvIFwx1KV20x07Fpbdq4Wmd8R2SxKhrjJ/3oi/89vzELMAkGBSsOAwIaBQAwgaQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIUprjSdtGx4KAgYDhX4LSBBu50YAszTioIJ6Vw/9/caqjg+EfZyYJxTdErp79C1LSWlChLibfSG0n4mEOUIepR7ofDUMj7xZlvpRnEQM4lkj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GA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MTEwNTA4MTI1MlowIwYJKoZIhvcNAQkEMRYEFLbdyGF7w95duoPnkRY2Sus6yjQdMA0GCSqGSIb3DQEBAQUABIGAoiTS8xd6aeRH/CfUVpjEIaAIjtPBqKdo811m1ZQsvDhVh0LR8M1unJGVxuDmEHvWNFuVw9tIQvN/SoV3FX8i59+Sl6uMvp1/V0p3JbMOC9CoenHMjfTk0VgaDe3N5gLSeSTdXbXvqcSJeICgFpAazwTZqWw8bPlSb4zcTXG2yYQ=-----END PKCS7-----
                        ">
                          <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal ? The safer, easier way to pay online.">
                          <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
                        </form>
                      </li>
                    </ul>
                {{/if}}
                <!--form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form-->
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</template>
