You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
562 B
16 lines
562 B
@using Microsoft.AspNet.Identity
|
|
@if (Request.IsAuthenticated)
|
|
{
|
|
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li>
|
|
@Html.ActionLink("你好," + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
|
|
</li>
|
|
<li><a href="javascript:document.getElementById('logoutForm').submit()">注销</a></li>
|
|
</ul>
|
|
}
|
|
}
|