@inject NotificationConfiguration NotificationConfiguration

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>@ViewData["Title"] - listrr.pro</title>

    <link rel="stylesheet" href="~/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/select2.min.css" />
    <link rel="stylesheet" href="~/css/fontawesome.min.css" />
    <link asp-append-version="true" rel="stylesheet" href="~/css/site.css" />
</head>
<body>
    <header>
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-dark bg-dark border-bottom box-shadow mb-3">
            <div class="container">
                <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">listrr.pro</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">

                    <partial name="_LoginPartial" />

                    <ul class="navbar-nav flex-grow-1">
                        @if (User.Identity.IsAuthenticated)
                        {
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Management</a>
                                <div class="dropdown-menu">
                                    <a class="dropdown-item" asp-area="" asp-controller="List" asp-action="My">My lists</a>
                                    <div class="dropdown-divider"></div>
                                    <a class="dropdown-item" asp-area="" asp-controller="List" asp-action="MovieList">New movie list (filters)</a>
                                    <a class="dropdown-item" asp-area="" asp-controller="List" asp-action="ShowList">New show list (filters)</a>
                                    <div class="dropdown-divider"></div>
                                    <a class="dropdown-item" asp-area="" asp-controller="List" asp-action="MovieListFile">New movie list (names)</a>
                                    <a class="dropdown-item" asp-area="" asp-controller="List" asp-action="ShowListFile">New show list (names)</a>
                                </div>
                            </li>

                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Donating</a>
                                <div class="dropdown-menu">
                                    <a class="dropdown-item" asp-area="" asp-controller="Donor" asp-action="WhyDonate">Why donate?</a>
                                    <div class="dropdown-divider"></div>
                                    <a class="dropdown-item" href="https://github.com/sponsors/TheUltimateC0der" target="_blank">Donate</a>
                                    <a class="dropdown-item" asp-area="Identity" asp-page="/Account/Login" asp-route-handler="LinkLogin" asp-route-provider="GitHub">Link GitHub account</a>
                                    <a class="dropdown-item" asp-area="Identity" asp-page="/Account/Login" asp-route-handler="LinkLogin" asp-route-provider="Discord">Link Discord account</a>
                                </div>
                            </li>
                        }

                        <li class="nav-item">
                            <a class="nav-link text-light" asp-area="" asp-controller="Home" asp-action="Lists">All lists</a>
                        </li>
                    </ul>

                </div>
            </div>
        </nav>
    </header>
    <div class="container">
        <main role="main" class="pb-3">

            @if (ViewData["Title"] != null && ViewData["Message"] != null)
            {
                <div class="page-header">
                    <h1>@ViewData["Title"]</h1>
                    <h4>@ViewData["Message"]</h4>
                </div>

                <hr />
            }

            @if (NotificationConfiguration != null)
            {
                <div class="@NotificationConfiguration.Class">
                    <strong>@NotificationConfiguration.Title</strong>
                    <p class="mb-0">@NotificationConfiguration.Text</p>
                </div>
            }

            @RenderBody()
        </main>
    </div>

    <footer class="border-top footer text-muted">
        <div class="container">
            &copy; 2018 - @DateTime.Now.Year | <a href="https://listrr.pro">listrr.pro</a> | <a href="https://discord.gg/6PQseA7" target="_blank">Discord</a> | <a href="https://github.com/sponsors/TheUltimateC0der" target="_blank">Donate</a> | <a href="https://github.com/TheUltimateC0der/Listrr" target="_blank">GitHub</a> | Theme: <a href="https://bootswatch.com/darkly/" target="_blank">Darkly</a>
        </div>
    </footer>

    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/js/bootstrap.min.js"></script>
    <script src="~/js/select2.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>

    @await RenderSectionAsync("Scripts", required: false)
</body>
</html>
