-
-
Save gdyrrahitis/f9d774b0a323b2613b69bc6b1ab1be8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model Authentication.Local.Controllers.Home.ProfileViewModel | |
@{ | |
ViewData["Title"] = "Profile"; | |
} | |
<div class="row"> | |
<div class="col-md-12"> | |
<h2>User claims</h2> | |
<h3>@Model.Name</h3> | |
@if (Model.Claims.Any()) | |
{ | |
foreach (var claim in Model.Claims) | |
{ | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">@claim.Type</h3> | |
</div> | |
<div class="panel-body"> | |
@claim.Value | |
</div> | |
</div> | |
} | |
} | |
else | |
{ | |
<div class="alert alert-danger"> | |
<p>User has no claims.</p> | |
</div> | |
} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment