移除所有页面对Header、Footer、Navigator的引用

This commit is contained in:
Argo-Lenovo 2017-01-04 19:04:47 +08:00
parent 4708531f21
commit d4696fe822
23 changed files with 17 additions and 131 deletions

View File

@ -355,5 +355,4 @@ $(function () {
$('head').append($.format('<link href="../Content/css/{0}" rel="stylesheet" type="text/css" />', result[0].Code));
}
});
$('#websiteFooter').text($('#footer').val());
});

View File

@ -3,12 +3,6 @@
ViewBag.Title = "Api 文档";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section javascript {
<script src="~/Scripts/apidoc.js"></script>
}

View File

@ -7,12 +7,6 @@
<script src="~/Content/js/bootstrap3-typeahead.js"></script>
<script src="~/scripts/Dicts.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section query {
<form class="form-inline" role="form">
<div class="row">

View File

@ -16,12 +16,6 @@
<script src="~/Content/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/scripts/Exceptions.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">查询条件</div>
<div class="panel-body">

View File

@ -10,12 +10,6 @@
@section javascript {
<script src="~/Scripts/icon.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="faicon">
@Html.Partial("IconView")
</div>

View File

@ -6,12 +6,6 @@
@section Javascript {
<script src="~/scripts/Groups.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section query {
<form class="form-inline" role="form">
<div class="row">

View File

@ -3,12 +3,6 @@
ViewBag.Title = "后台管理";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section Javascript {
<script src="~/scripts/well.js"></script>
}

View File

@ -17,12 +17,6 @@
<link href="~/Content/css/tasks.css" rel="stylesheet" />
<link href="~/Content/css/fileinput.css" rel="stylesheet" />
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">基本资料</div>
<div class="panel-body">

View File

@ -15,12 +15,6 @@
<script src="~/Content/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="~/scripts/Logs.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">查询条件</div>
<div class="panel-body">

View File

@ -12,12 +12,6 @@
<script src="~/Content/js/jquery.nestable.js"></script>
<script src="~/scripts/Menus.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section query {
<form class="form-inline" role="form">
<div class="row">

View File

@ -6,12 +6,6 @@
@section Javascript {
<script src="~/Scripts/message.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="mail-box">
<aside class="sm-side">
<div class="user-head">

View File

@ -14,10 +14,4 @@
}
</style>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@Html.Partial("_Mobile")

View File

@ -11,12 +11,6 @@
<link href="~/Content/css/sweetalert.css" rel="stylesheet" />
<link href="~/Content/css/tasks.css" rel="stylesheet" />
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">用户注册<span class="pull-right"><a id="refreshUsers" href="javascript:;" class="fa fa-refresh tipso_style" title="点击刷新"></a></span></div>
<div class="panel-body">

View File

@ -14,12 +14,6 @@
<link href="~/Content/css/sweetalert.css" rel="stylesheet" />
<link href="~/Content/css/tasks.css" rel="stylesheet" />
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">系统名称设置</div>
<div class="panel-body">

View File

@ -12,12 +12,6 @@
<script src="~/scripts/Roles.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section query {
<form class="form-inline" role="form">
<div class="row">

View File

@ -11,12 +11,6 @@
<link href="~/Content/css/sweetalert.css" rel="stylesheet" />
<link href="~/Content/css/tasks.css" rel="stylesheet" />
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
<div class="panel panel-default">
<div class="panel-heading">任务消息<span class="pull-right"><a id="refreshTask" href="javascript:;" class="fa fa-refresh"></a></span></div>
<div class="panel-body">

View File

@ -6,12 +6,6 @@
@section Javascript {
<script src="~/scripts/Users.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
@section navigator {
@Html.Partial("Navigator", Model)
}
@section query {
<form class="form-inline" role="form">
<div class="row">

View File

@ -6,8 +6,5 @@
@section javascript {
<script src="~/Scripts/Content.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}
<div id="content" class="content-body welcome-bg">
</div>

View File

@ -1,10 +1,9 @@
<!--footer start-->
@model HeaderBarModel
<footer class="site-footer">
<div class="text-center">
<span id="websiteFooter"></span>
<span id="websiteFooter">@Model.Footer</span>
<a id="gotoTop" href="#" class="go-top" title="返回顶部">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->

View File

@ -1,15 +1,11 @@
@model HeaderBarModel
<!--header start-->
<header class="header white-bg">
<a id="navbar" href="#" class="sidebar-toggle-box">
<i class="fa fa-bars"></i>
<!--logo start-->
<span id="websiteTitle">@Model.Title</span>
</a>
<!--logo end-->
@if (LgbPrincipal.IsAdmin(User.Identity.Name) || User.IsInRole("Administrators"))
{
<!-- notification start -->
<ul class="notify-row">
<!-- tasks start -->
<li class="dropdown">
@ -97,11 +93,8 @@
</li>
<!-- db dropdown end -->
</ul>
<!-- notification end -->
}
<!--search & user info start-->
<ul class="pull-right top-menu">
<!-- user login dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<img id="headerIcon" alt="" src="@Url.Content(Model.Icon)">
@ -116,15 +109,17 @@
<li><a href="~/Home/Logout"><i class="fa fa-key"></i>注销</a></li>
</ul>
</li>
<!-- user login dropdown end -->
</ul>
<!--search & user info end-->
<!--breadcrumbs start -->
<ul class="breadcrumb">
<li><a href="@Url.Content(Model.HomeUrl)"><i class="fa fa-home"></i>首页</a></li>
<li id="breadNav"></li>
</ul>
<!--breadcrumbs end -->
<input id="footer" type="text" class="hidden" value="@Model.Footer" />
</header>
<!--header end-->
<footer class="site-footer">
<div class="text-center">
<span id="websiteFooter">@Model.Footer</span>
<a id="gotoTop" href="#" class="go-top" title="返回顶部">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>

View File

@ -20,8 +20,8 @@
<script src="~/Content/js/framework.js"></script>
@RenderSection("Javascript", false)
}
@RenderSection("header", false)
@RenderSection("navigator", false)
@Html.Partial("Header")
@Html.Partial("navigator")
<section id="main-content" class="main-content">
@RenderBody()
</section>

View File

@ -6,12 +6,6 @@
<link href="~/Content/css/sweetalert.css" rel="stylesheet" />
@RenderSection("css", false)
}
@section header {
@RenderSection("header", false)
}
@section navigator {
@RenderSection("navigator", false)
}
@section javascript {
<script src="~/content/js/longbow.dataentity.js"></script>
<script src="~/content/js/sweetalert.js"></script>

View File

@ -12,11 +12,9 @@
@section javascript {
@RenderSection("Javascript", false)
}
<section>
@RenderSection("header", false)
<section id="main-content">
@RenderBody()
</section>
@Html.Partial("Footer")
@Html.Partial("Header")
<section id="main-content">
@RenderBody()
</section>
@Html.Partial("Footer")
@RenderSection("modal", false)