<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2014 Mozilla Corporation

Contributors:
Jeff Bryner jbryner@mozilla.com
Anthony Verez averez@mozilla.com
-->

<template name="menu">
    <div class="container">
        <div id="header"  class="row center">
            <span >
                <h2><a class="mozdef" href="/" title="MOZDEF">MOZDEF</a></h2>
            </span>
            <span id="nav-main">
                <ul>
                    <li class="first"><a href="#">Kibanas</a>
                        <ul>
                            {{#each kibanadashboards as item}}
                                {{>kibanaDashboardItem}}
                            {{/each}}
                        </ul>
                    </li>
                    <li><a href="/alerts/">Alerts</a>
                    </li>
                    <li><a href="/investigations">Investigations</a>
                        <ul>
                            <li class="first"><a href="/investigation/new/">new investigation</a></li>
                        </ul>
                    </li>
                    <li><a href="/incidents">Incidents</a>
                        <ul>
                            <li class="first"><a href="/incident/new/">new incident</a></li>
                            <li class="last"><a href="/incidents/veris/">veris stats</a></li>
                        </ul>
                    </li>
                    <li class="first"><a href="#">Visualizations</a>
                        <ul>
                            <li class="first"><a href="/logincounts/">logincounts</a></li>
                            <li><a href="/attackers">attackers</a></li>
                            <li><a href="/landmass">Landmass</a></li>
                            <li class="last"><a href="/globe">globe</a></li>
                        </ul>
                    </li>
                    <li><a href="/about">About</a></li>
                </ul>

                <a class="mozilla" href="http://mozilla.org"><img src="/images/mozilla-tab.png"></a>
                <label>
                    {{#if loggingIn}}
                            loading

                    {{/if}}
                    {{> loginButtons align="right"}}
                </label>
            </span>
        </div>
    </div>
</template>

<template name="kibanaDashboardItem">
    <li>
        <a target=" _blank" href="{{url}}">{{name}}</a>
    </li>
</template>

