完善主界面的显示
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
}
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1>ASP.NET</h1>
|
||||
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
|
||||
<p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
|
||||
<h1>C-S 软件系统架构设计框架</h1>
|
||||
<p class="lead">本框架是一个免费开源的框架系统,集成了C-S和B-S架构设计,采用了统一的模型机制,快速便捷的开发C-B-S混合系统,也可以选择中间的一个模式。</p>
|
||||
<p><a href="https://github.com/dathlin/C-S-" class="btn btn-primary btn-lg">Learn more »</a></p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>Getting started</h2>
|
||||
<h2>准备开始</h2>
|
||||
<p>
|
||||
ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
|
||||
enables a clean separation of concerns and gives you full control over markup
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
@Html.ActionLink("应用程序名称", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
||||
@Html.ActionLink(CommonLibrary.Resource.StringResouce.SoftName, "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@@ -33,7 +33,16 @@
|
||||
@RenderBody()
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© @DateTime.Now.Year - @CommonLibrary.Resource.StringResouce.SoftName</p>
|
||||
<p style="text-align:center">
|
||||
@{
|
||||
string year = DateTime.Now.Year > 2017 ? "2017 - " + DateTime.Now.Year : DateTime.Now.Year.ToString();
|
||||
}
|
||||
|
||||
<small>
|
||||
© @year - @CommonLibrary.Resource.StringResouce.SoftName | 本软件著作权归<span>@CommonLibrary.Resource.StringResouce.SoftCopyRight</span>所有
|
||||
| 服务器版本:V @ClientsLibrary.UserClient.CurrentVersion.ToString()
|
||||
</small>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,4 +1,27 @@
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>@Html.ActionLink("登录", "AccountLogin", "Home")</li>
|
||||
</ul>
|
||||
@using 软件系统浏览器模版.Models
|
||||
@using CommonLibrary
|
||||
|
||||
|
||||
@{
|
||||
if (Session[SessionItemsDescription.UserAccount] == null)
|
||||
{
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>@Html.ActionLink("登录", "AccountLogin", "Home")</li>
|
||||
</ul>
|
||||
}
|
||||
else
|
||||
{
|
||||
UserAccount user = Session[软件系统浏览器模版.Models.SessionItemsDescription.UserAccount] as UserAccount;
|
||||
|
||||
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<li>@Html.ActionLink("您好," + user.UserName + "!", "AccountDetail", "Account")</li>
|
||||
<li><a href="javascript:document.getElementById('logoutForm').submit()">注销</a></li>
|
||||
</ul>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user