Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1807)

Delta Between Two Patch Sets: Calendar.ASP.NET.MVC5/Views/Shared/_LoginPartial.cshtml

Issue 194980043: Issue 6: Create an ASP.Net MVC Sample Base URL: https://google-api-dotnet-client.samples.googlecode.com/hg/
Left Patch Set: Correct base revision Created 9 years, 2 months ago
Right Patch Set: Addressed peleyal's comments Created 8 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Calendar.ASP.NET.MVC5/Views/Shared/_Layout.cshtml ('k') | Calendar.ASP.NET.MVC5/Views/Web.config » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 @using Microsoft.AspNet.Identity 1 @*
2 This file is added automatically by the MVC 5 application template.
3 Some unnecessary code has been removed for the purpose of this sample.
4 *@
5
6 @using Microsoft.AspNet.Identity
2 @if (Request.IsAuthenticated) 7 @if (Request.IsAuthenticated)
3 { 8 {
4 using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logo utForm", @class = "navbar-right" })) 9 using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logo utForm", @class = "navbar-right" }))
5 { 10 {
6 @Html.AntiForgeryToken() 11 @Html.AntiForgeryToken()
7 12
8 <ul class="nav navbar-nav navbar-right"> 13 <ul class="nav navbar-nav navbar-right">
9 <li class="navbar-text">Hello @User.Identity.GetUserName()!</li> 14 <li class="navbar-text">Hello @User.Identity.GetUserName()!</li>
10 <li><a href="javascript:document.getElementById('logoutForm').submit()"> Log off</a></li> 15 <li><a href="javascript:document.getElementById('logoutForm').submit()"> Log off</a></li>
11 </ul> 16 </ul>
12 } 17 }
13 } 18 }
14 else 19 else
15 { 20 {
16 <ul class="nav navbar-nav navbar-right"> 21 <ul class="nav navbar-nav navbar-right">
17 <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, ht mlAttributes: new { id = "loginLink" })</li> 22 <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, ht mlAttributes: new { id = "loginLink" })</li>
18 </ul> 23 </ul>
19 } 24 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b