
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                @Html.ActionLink("WebStor", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            @if (DBModel.Helpers.СonfigHelper.Configured)
            {
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        @if (User.Identity.IsAuthenticated)
                        {
                            <li>@Html.ActionLink("Документы", "Documents", "Storage") </li>
                        }
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        @if (User.Identity.IsAuthenticated)
                        {
                            <li>
                                <p class="navbar-text">@User.Identity.Name</p>
                            </li>
                            <li>@Html.ActionLink("Выйти", "LogOff", "Account") </li>
                        }
                        else
                        {
                            <li>@Html.ActionLink("Регистрация", "Register", "Account")</li>
                            <li>@Html.ActionLink("Войти", "Login", "Account")</li>
                        }
                    </ul>
                </div>
            }
        </div>
    </div>

    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year – WebStor</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
