Use partial tag helper (#375)

Addresses #338
This commit is contained in:
Jass Bagga 2018-03-20 10:36:08 -07:00 committed by GitHub
parent cbdc7bd3b8
commit f786df9dc9
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>
</ul>
@*#if (IndividualAuth || OrganizationalAuth)
@await Html.PartialAsync("_LoginPartial")
<partial name="_LoginPartial" />
#elseif (WindowsAuth)
<p class="nav navbar-text navbar-right">Hello, @User.Identity.Name!</p>
#endif*@

View File

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