diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor index 66c4949ac9..d301cc831b 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/Index.razor @@ -2,48 +2,211 @@ @using Volo.Abp.Users @using Volo.Abp.MultiTenancy @using System.Security.Claims +@using Microsoft.Extensions.Localization +@using MyCompanyName.MyProjectName.Localization @inject ICurrentUser CurrentUser @inject ICurrentTenant CurrentTenant @inject AuthenticationStateProvider AuthenticationStateProvider +@inject IStringLocalizer L -

Welcome to MyProjectName!

-@if (CurrentUser.IsAuthenticated) -{ -

Current User

- -} +
+
+ +
Congratulations, MyProjectName is successfully running!
+
-@if (_claims != null) -{ -

Current Claims

-
    - @foreach (var claim in _claims) +

    Welcome to the Application

    + +

    @L["LongWelcomeMessage"]

    + + @if (!CurrentUser.IsAuthenticated) { -
  • @claim.Type: @claim.Value
  • + } -
-} -@if (CurrentTenant.IsAvailable) -{ -

Current Tenant

-
    -
  • Id: @CurrentTenant.Id
  • -
  • Name: @CurrentTenant.Name
  • -
-} + + @if (CurrentUser.IsAuthenticated) + { + +

Current User

+
    +
  • Id: @CurrentUser.Id
  • +
  • TenantId: @CurrentUser.TenantId
  • +
  • UserName: @CurrentUser.UserName
  • +
  • Name: @CurrentUser.Name
  • +
  • SurName: @CurrentUser.SurName
  • +
  • Email: @CurrentUser.Email
  • +
  • EmailVerified: @CurrentUser.EmailVerified
  • +
  • PhoneNumber: @CurrentUser.PhoneNumber
  • +
  • PhoneNumberVerified: @CurrentUser.PhoneNumberVerified
  • +
  • Roles: @CurrentUser.Roles.JoinAsString(", ")
  • +
+
+ } + @if (_claims != null) + { + +

Current Claims

+
    + @foreach (var claim in _claims) + { +
  • @claim.Type: @claim.Value
  • + } +
+
+ } + @if (CurrentTenant.IsAvailable) + { + +

Current Tenant

+
    +
  • Id: @CurrentTenant.Id
  • +
  • Name: @CurrentTenant.Name
  • +
+
+ } +
+
+ +
+

Let's improve your application!

+

Here are some links to help you get started:

+
+ +
+
+
+
+
+
Learn the ABP Framework
+

Explore the compherensive documentation to learn how to build a modern web application.

+ See Documents +
+
+
+
+
Samples
+

See the example projects built with the ABP Framework.

+ All samples +
+
+
+
+
ABP Community
+

Get involved with a vibrant community and become a contributor.

+ Community + Contribute +
+
+
+
+
+
+
ABP Blog
+

Take a look at our recently published articles.

+ See Blog +
+
+
+
+
Github
+

Do you love the ABP Framework? Please give a star to support it!

+

+ Star + Issue + Fork +

+ Request a feature + +
+
+
+
+
Stackoverflow
+

See answers to previously asked questions or ask a new one.

+ Questions + Ask a Question +
+
+
+
+
+ +
+

Meet the ABP Commercial

+

A Complete Web Application Platform Built on the ABP Framework

+
+ +
+
+

+ ABP Commercial is a platform based on the open source ABP framework. It provides pre-built application modules, + rapid application development tooling, professional UI themes, premium support and more. +

+ +
+
+
+
+ Startup Templates + Details +
+
+
+
+
+
+ Application Modules + Details +
+
+
+
+
+
+ Developer
Tools + Details +
+
+
+
+
+
+ UI
Themes + Details +
+
+
+
+
+
+ Premium Support + Details +
+
+
+
+
+
+ Additional Services + Details +
+
+
+
+
+
+ +
@code {