<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{ project_shortname }} {% block title %}Administrator{% endblock %}</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    {% block stylesheets %}
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
        <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

        {% stylesheets filter='cssrewrite'
        '@JotunheimrAdminBundle/Resources/public/js/vendor/bootstrap/css/bootstrap.css'
        '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/iCheck/flat/_all.css'
        '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/iCheck/polaris/polaris.css'
        '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/iCheck/futurico/futurico.css'
        '@JotunheimrAdminBundle/Resources/public/css/s7Admin.css'
        '@JotunheimrAdminBundle/Resources/public/css/skins/_all-skins.min.css' %}
        <link rel="stylesheet" media="screen" href="{{ asset_url }}" type="text/css"/>
        {% endstylesheets %}
    {% endblock %}
    <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}"/>
</head>

<body class="skin-blue layout-boxed sidebar-mini">
<div class="wrapper">
    <header class="main-header">
        <a href="{{ path('JotunheimrAdminBundle_homepage') }}" class="logo">
            <span class="logo-mini"><b>T</b>T</span>
            <span class="logo-lg"><b>{{ project_shortname }}</b> Administrator</span>
        </a>
        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{{ asset('bundles/jotunheimradmin/images/avatar5.png') }}" class="user-image"
                                 alt="User Image">
                            <span class="hidden-xs">{% if app.user.name is defined %}{{ app.user.name }}{% endif %}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="{{ asset('bundles/jotunheimradmin/images/avatar5.png') }}" class="img-circle"
                                     alt="User Image">
                                <p>
                                    {% if app.user.username is defined %}{{ app.user.username }}{% endif %}
                                    <small>@<b>{{ project_shortname }}</b>Administrator</small>
                                </p>
                            </li>
                            <li class="user-footer">
                                <div class="pull-right">
                                    <a href="{{ path('fos_user_security_logout') }}"
                                       class="btn btn-default btn-flat">Sign out</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu">
                <li{% if app.request.attributes.get('_route') == 'JotunheimrAdminBundle_homepage' %} class="active"{% endif %}>
                    <a href="{{ path('JotunheimrAdminBundle_homepage') }}">
                        <i class="fa fa-home"></i><span>Dashboard</span>
                    </a>
                </li>
                {% if is_granted('ROLE_ADMIN') %}
                    <li class="header">ADMIN NAVIGATION</li>
                    {#<li{% if app.request.attributes.get('_route') == 'JotunheimrAdminBundle_JotunUser_index' %} class="active"{% endif %}>#}
                        {#<a href="{{ path('JotunheimrAdminBundle_JotunUser_index') }}">#}
                            {#<i class="fa fa-user"></i><span>Users</span>#}
                        {#</a>#}
                    {#</li>#}
                {% endif %}
                <li class="header">MAIN NAVIGATION</li>
                {#<li{% if app.request.attributes.get('_route') == 'JotunheimrAdminBundle_Menu_index' %} class="active"{% endif %}>#}
                    {#<a href="{{ path('JotunheimrAdminBundle_Menu_index') }}">#}
                        {#<i class="fa fa-bars"></i><span>Menu</span>#}
                    {#</a>#}
                {#</li>#}
            </ul>
        </section>
    </aside>

    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                {% block mainTitle %}Dashboard{% endblock %}
                <small>{% block mainSubTitle %}Control panel{% endblock %}</small>
            </h1>
        </section>

        <section class="content">
            {% block body %}{% endblock %}
        </section>
    </div>

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> {{ jotun_version }}
        </div>
        <strong>Copyright &copy; 2016 <a href="http://www.laszlolang.com">www.laszlolang.com system7</a>.</strong> All
        rights reserved.
    </footer>
</div>

{% block javascripts %}
    {% javascripts
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/jQuery/jquery-3.0.0.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/jQuery/jquery-migrate-3.0.0.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/jQueryUI/jquery-ui.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/bootstrap/js/bootstrap.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/moment.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/daterangepicker/daterangepicker.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/datepicker/bootstrap-datepicker.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/vendor/plugins/iCheck/icheck.min.js'
    '@JotunheimrAdminBundle/Resources/public/js/app.js' %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endblock %}

</body>
</html>