Last change
on this file since 9604 was
9604,
checked in by pfleck, 11 years ago
|
#2063:
Set up basic webpage layout based on WebApplication branch.
Added Asp.Net MVC packages and some helper packages.
Implemented login.
|
File size:
466 bytes
|
Line | |
---|
1 | @if (Request.IsAuthenticated) {
|
---|
2 | <text>
|
---|
3 | Hello, @User.Identity.Name!
|
---|
4 | @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
|
---|
5 | @Html.AntiForgeryToken()
|
---|
6 | <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
|
---|
7 | }
|
---|
8 | </text>
|
---|
9 | } else {
|
---|
10 | @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
|
---|
11 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.