Merge pull request #385 from aspnet/release/2.1

Use partial tag helper (#375)
This commit is contained in:
Jass Bagga 2018-03-20 10:36:34 -07:00 committed by GitHub
commit 001f37263b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
<li><a asp-page="/Contact">Contact</a></li> <li><a asp-page="/Contact">Contact</a></li>
</ul> </ul>
@*#if (IndividualAuth || OrganizationalAuth) @*#if (IndividualAuth || OrganizationalAuth)
@await Html.PartialAsync("_LoginPartial") <partial name="_LoginPartial" />
#elseif (WindowsAuth) #elseif (WindowsAuth)
<p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p> <p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p>
#endif*@ #endif*@

View File

@ -35,7 +35,7 @@
<li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li> <li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul> </ul>
@*#if (IndividualAuth || OrganizationalAuth) @*#if (IndividualAuth || OrganizationalAuth)
@await Html.PartialAsync("_LoginPartial") <partial name="_LoginPartial" />
#elseif (WindowsAuth) #elseif (WindowsAuth)
<p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p> <p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p>
#endif*@ #endif*@