BootstrapAdmin/Bootstrap.Client/Views/Shared/_Layout.cshtml

49 lines
2.4 KiB
Plaintext

@model ModelBase
@{
Layout = "_Root";
}
@section css {
<environment include="Development">
<link href="~/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/font-awesome.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
</environment>
<environment exclude="Development">
<link href="~/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true">
<link href="~/css/font-awesome.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/toastr.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/jquery.mCustomScrollbar.min.css" rel="stylesheet" />
</environment>
@RenderSection("css", false)
<link href="~/css/theme.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/theme-responsive.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/site.css" rel="stylesheet" asp-append-version="true" />
<link href="~/css/site-responsive.css" rel="stylesheet" asp-append-version="true" />
@if (!string.IsNullOrEmpty(Model.Theme))
{
<link href="~/css/@Model.Theme" rel="stylesheet" asp-append-version="true" />
}
}
@section javascript {
<environment include="Development">
<script src="~/js/bootstrap.bundle.js" asp-append-version="true"></script>
<script src="~/js/jquery.mCustomScrollbar.js"></script>
</environment>
<environment exclude="Development">
<script src="~/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
<script src="~/js/jquery.mCustomScrollbar.concat.min.js"></script>
</environment>
<script src="~/js/toastr.min.js" asp-append-version="true"></script>
<script src="~/js/longbow.common.js" asp-append-version="true"></script>
<script src="~/js/jquery.dcjqaccordion.2.7.js" asp-append-version="true"></script>
<script src="~/js/common-scripts.js" asp-append-version="true"></script>
@RenderSection("javascript", false)
}
@await Html.PartialAsync("Header")
@await Html.PartialAsync("navigator")
<section class="container-fluid">
@RenderBody()
</section>
@await Html.PartialAsync("Footer")
@RenderSection("modal", false)