临河任务调度
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2KB

  1. @page
  2. @using Himp.TaskScheduling.Pages
  3. @using Volo.Abp.Users
  4. @model IndexModel
  5. @inject ICurrentUser CurrentUser
  6. @if (CurrentUser.IsAuthenticated)
  7. {
  8. <div>
  9. <abp-row>
  10. <abp-column size-md="_3" class="text-center">
  11. <i class="fa fa-user d-block" style="font-size: 10em; color: #12b900"></i>
  12. <a abp-button="Primary" asp-controller="Logout" asp-action="Index" asp-area="Account">Logout</a>
  13. </abp-column>
  14. <abp-column size-md="_9">
  15. <h2>@CurrentUser.UserName</h2>
  16. <h5 class="text-muted">@CurrentUser.Email</h5>
  17. <div>
  18. <strong>Roles</strong>: @CurrentUser.Roles.JoinAsString(", ")
  19. <br />
  20. <strong>Claims</strong>: <br />
  21. @Html.Raw(CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString(" <br /> "))
  22. </div>
  23. </abp-column>
  24. </abp-row>
  25. </div>
  26. }
  27. @if (!CurrentUser.IsAuthenticated)
  28. {
  29. <div class="text-center">
  30. <i class="fa fa-user d-block" style="font-size: 10em; color: #aaa"></i><br/><br />
  31. <a abp-button="Primary" asp-page="/Account/Login">Login</a>
  32. </div>
  33. }