<!doctype html>
<html lang="{{ .lang }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ trans .lang "admin_title" }}</title>
    <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="/static/admin/css/bootstrap.min.css?v={{ version }}" rel="stylesheet">
    <link href="/static/admin/css/dashboard.css?v={{ version }}" rel="stylesheet">
</head>
<body>
    <div class="container-fluid">
        <div class="row">
            <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse bg-light">
                <div class="position-sticky pt-3 sidebar-sticky">
                    <ul class="nav flex-column">
                        <li class="nav-item">
                            <a class="nav-link {{ if eq .section "article" }}active{{ end }}" href="/admin/">
                                {{ trans .lang "admin_articles" }}
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link {{ if eq .section "tag" }}active{{ end }}" href="/admin/tag">
                                {{ trans .lang "admin_tags" }}
                            </a>
                        </li>
                        <li class="nav-item mt-3 pt-3 border-top">
                            <a class="nav-link {{ if eq .section "change_password" }}active{{ end }}" href="/admin/user/change-password">
                                {{ trans .lang "admin_change_password" }}
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/admin/logout">
                                {{ trans .lang "admin_logout" }}
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>
            {{ embed }}
        </div>
    </div>
    <script src="/static/admin/js/bootstrap.bundle.min.js?v={{ version }}"></script>
    <script src="/static/admin/tinymce/tinymce.min.js?v={{ version }}"></script>
    {{ block "admin/custom_bottom_static" . }}{{ end }}
    </body>
</html>