<nav class="main-header navbar navbar-expand navbar-white navbar-light border-bottom">
    {% if role is not defined %}
        {% set top_menu = 'no' %}
    {% elif role != 'presenter' %}
        {% set top_menu = 'yes' %}
    {% else %}
        {% set top_menu = 'no' %}
    {% endif %}
    <ul class="navbar-nav">
        <li class="nav-item">
            <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a href="/" class="nav-link">Home</a>
        </li>
        {% if top_menu == 'yes' %}
        <li class="nav-item d-none d-sm-inline-block">
            <a href="{{ url_for('plugins') }}" class="nav-link">Plugins</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a href="https://gorillaml.readthedocs.io/en/latest" class="nav-link" target="_blank" data-intro='Plugins development guide is here.'>Documentations</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a class="nav-link tour">Start Tour</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a href="https://rzp.io/l/gorillaml" class="nav-link" target="_blank" data-intro='To keep this project active and alive donate us.'>Donate</a>
        </li>
        {% endif %}
    </ul>
    {% if top_menu == 'yes' %}
    <form class="form-inline ml-3" method="get" action="{{ url_for('plugins') }}">
        <div class="input-group input-group-sm">
            <input class="form-control form-control-navbar" name="name" type="search" placeholder="Plugins Search" aria-label="Search">
            <div class="input-group-append">
                <button class="btn btn-navbar" type="submit">
                    <i class="fas fa-search"></i>
                </button>
            </div>
        </div>
    </form>
    {% endif %}

    <ul class="navbar-nav ml-auto">
        {% if status %}
        <li class="nav-item d-none d-sm-inline-block">
            <a class="nav-link" href="{{ url_for('myaccount') }}">My Account</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
        </li>
        {% else %}
        <li class="nav-item d-none d-sm-inline-block">
            <a class="nav-link" href="{{ url_for('login') }}">Login</a>
        </li>
        {% endif %}
    </ul>
</nav>