50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
@using Ninject
|
|
@using WebsitePanel.WebDavPortal.Config
|
|
@using WebsitePanel.WebDavPortal.DependencyInjection
|
|
@using WebsitePanel.WebDavPortal.Models
|
|
@using WebsitePanel.WebDavPortal.UI.Routes;
|
|
|
|
@{
|
|
var account = DependencyResolver.Current.GetService<AccountModel>();
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<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">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
@Html.RouteLink(WebDavAppConfigManager.Instance.ApplicationName, FileSystemRouteNames.FilePath, new { pathPart = string.Empty }, new { @class = "navbar-brand" })
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
@{
|
|
if (account != null)
|
|
{
|
|
<a id="logout" class="nav navbar-text navbar-right" href="@Url.RouteUrl(AccountRouteNames.Logout)" title="Log out"><i class="glyphicon glyphicon-log-out"></i></a>
|
|
<h4 id="username" class="nav navbar-text navbar-right">@account.Login</h4>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container body-content">
|
|
@RenderBody()
|
|
</div>
|
|
|
|
@Scripts.Render("~/bundles/jquery")
|
|
@Scripts.Render("~/bundles/bootstrap")
|
|
@RenderSection("scripts", required: false)
|
|
</body>
|
|
</html>
|