From afc52fa3d0b84192ec618fb49c34dc7e516027ef Mon Sep 17 00:00:00 2001 From: Ahmet Date: Fri, 29 Jan 2021 14:41:10 +0300 Subject: [PATCH] update module template host projects --- .../Pages/Index.cshtml | 1 + .../Pages/Index.cshtml | 25 +++++++++++++------ .../Menus/MyProjectNameMenuContributor.cs | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/Pages/Index.cshtml b/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/Pages/Index.cshtml index c46fdc673c..86106c7175 100644 --- a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/Pages/Index.cshtml +++ b/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/Pages/Index.cshtml @@ -6,6 +6,7 @@ @using Volo.Abp.Users @inject IHtmlLocalizer L @inject ICurrentUser CurrentUser + Welcome diff --git a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Pages/Index.cshtml b/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Pages/Index.cshtml index 3f37ed5a3e..655fa4d552 100644 --- a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Pages/Index.cshtml +++ b/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Pages/Index.cshtml @@ -7,11 +7,20 @@ @inject IStringLocalizer Localizer @inject ICurrentUser CurrentUser -@if (!CurrentUser.IsAuthenticated) -{ - @Localizer["Login"] -} -else -{ - Welcome: @CurrentUser.UserName -} \ No newline at end of file + + Welcome + + @if (!CurrentUser.IsAuthenticated) + { + @Localizer["Login"] + } + else + { + Welcome: @CurrentUser.UserName + } +
+

abp.io

+
+
+ + diff --git a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs index 9ed725efb7..116bffb5aa 100644 --- a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs +++ b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs @@ -16,7 +16,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Menus private Task ConfigureMainMenuAsync(MenuConfigurationContext context) { //Add main menu items. - context.Menu.AddItem(new ApplicationMenuItem(MyProjectNameMenus.Prefix, displayName: "MyProjectName", "~/MyProjectName", icon: "fa fa-globe")); + context.Menu.AddItem(new ApplicationMenuItem(MyProjectNameMenus.Prefix, displayName: "MyProjectName", "/MyProjectName", icon: "fa fa-globe")); return Task.CompletedTask; }