重构代码:设置默认Layout为_Admin布局

This commit is contained in:
Argo-MacBookPro 2018-09-23 13:31:03 +08:00
parent 72e04f62e7
commit a6ed1bc7a2
16 changed files with 5 additions and 12 deletions

View File

@ -1,5 +1,6 @@
@{
ViewBag.Title = "未授权请求";
Layout = "_Layout";
}
@section css {
<link href="~/css/error.css" rel="stylesheet" asp-append-version="true" />

View File

@ -1,6 +1,7 @@
@model ModelBase
@{
ViewBag.Title = Model.Title;
Layout = "_Layout";
}
@section css {
<environment include="Development">

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "Api 文档";
Layout = "_Admin";
}
@section javascript {
<script src="~/js/apidoc.js" asp-append-version="true"></script>

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "程序异常";
Layout = "_Admin";
}
@section css {
<link href="~/css/bootstrap-table.css" rel="stylesheet" asp-append-version="true" />

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "图标集";
Layout = "_Admin";
}
@section css {
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />

View File

@ -1,7 +1,6 @@
@model ModelBase
@{
ViewBag.Title = "后台管理";
Layout = "_Admin";
}
@section css {
<style>

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "系统日志";
Layout = "_Admin";
}
@section css {
<environment include="Development">

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "站内消息";
Layout = "_Admin";
}
@section javascript {
<script src="~/js/message.js" asp-append-version="true"></script>

View File

@ -1,7 +1,6 @@
@model ModelBase
@{
ViewBag.Title = "客户端测试";
Layout = "_Admin";
}
@section javascript {
<script>

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "通知管理";
Layout = "_Admin";
}
@section css {
<environment include="Development">

View File

@ -1,7 +1,6 @@
@model ProfilesModel
@{
ViewBag.Title = "个人中心";
Layout = "_Admin";
}
@section css {
<environment include="Development">

View File

@ -1,7 +1,6 @@
@model ThemeModel
@{
ViewBag.Title = "网站设置";
Layout = "_Admin";
}
@section javascript {
<environment include="Development">

View File

@ -1,7 +1,6 @@
@model NavigatorBarModel
@{
ViewBag.Title = "任务管理";
Layout = "_Admin";
}
@section css {
<link href="~/css/tasks.css" rel="stylesheet" asp-append-version="true" />

View File

@ -1,5 +1,6 @@
@{
ViewBag.Title = "服务器内部错误";
Layout = "_Layout";
}
@section css {
<link href="~/css/error.css" rel="stylesheet" />

View File

@ -1,5 +1,6 @@
@{
ViewBag.Title = "资源未找到";
Layout = "_Layout";
}
@section css {
<link href="~/css/error.css" rel="stylesheet" />

View File

@ -1,3 +1,3 @@
@{
Layout = "_Layout";
Layout = "_Admin";
}