File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed
src/AbpCompanyName.AbpProjectName.Web Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -14,31 +14,31 @@ public override void SetNavigation(INavigationProviderContext context)
1414 context . Manager . MainMenu
1515 . AddItem (
1616 new MenuItemDefinition (
17- " Home" ,
17+ PageNames . Home ,
1818 L ( "HomePage" ) ,
1919 url : "" ,
2020 icon : "fa fa-home" ,
2121 requiresAuthentication : true
2222 )
2323 ) . AddItem (
2424 new MenuItemDefinition (
25- " Tenants" ,
25+ PageNames . Tenants ,
2626 L ( "Tenants" ) ,
2727 url : "Tenants" ,
2828 icon : "fa fa-globe" ,
2929 requiredPermissionName : PermissionNames . Pages_Tenants
3030 )
3131 ) . AddItem (
3232 new MenuItemDefinition (
33- " Users" ,
33+ PageNames . Users ,
3434 L ( "Users" ) ,
3535 url : "Users" ,
3636 icon : "fa fa-users" ,
3737 requiredPermissionName : PermissionNames . Pages_Users
3838 )
3939 ) . AddItem (
4040 new MenuItemDefinition (
41- " About" ,
41+ PageNames . About ,
4242 L ( "About" ) ,
4343 url : "About" ,
4444 icon : "fa fa-info"
Original file line number Diff line number Diff line change @@ -4,5 +4,7 @@ public class PageNames
44 {
55 public const string Home = "Home" ;
66 public const string About = "About" ;
7+ public const string Tenants = "Tenants" ;
8+ public const string Users = "Users" ;
79 }
810}
Original file line number Diff line number Diff line change 1- @{
2- ViewBag .CurrentPageName = " About" ; // The menu item will be active for this page.
1+ @using AbpCompanyName .AbpProjectName .Web .Startup
2+ @{
3+ ViewBag .CurrentPageName = PageNames .About ; // The menu item will be active for this page.
34}
45<div >
56 <div class =" row" >
Original file line number Diff line number Diff line change 1- @{
2- ViewBag .CurrentPageName = " Home" ; // The menu item will be active for this page.
1+ @using AbpCompanyName .AbpProjectName .Web .Startup
2+ @{
3+ ViewBag .CurrentPageName = PageNames .Home ; // The menu item will be active for this page.
34}
45<h1 >@L( "WellcomeMessage")</h1 >
56<div class =" row" >
Original file line number Diff line number Diff line change 11@using Abp .MultiTenancy
22@using AbpCompanyName .AbpProjectName .MultiTenancy
3+ @using AbpCompanyName .AbpProjectName .Web .Startup
34@model Abp .Application .Services .Dto .ListResultOutput <AbpCompanyName .AbpProjectName .MultiTenancy .Dto .TenantListDto >
45@{
5- ViewBag .CurrentPageName = " Tenants" ; // The menu item will be active for this page.
6+ ViewBag .CurrentPageName = PageNames . Tenants ; // The menu item will be active for this page.
67}
78@section scripts
89{
Original file line number Diff line number Diff line change 11@using Abp .Authorization .Users
2+ @using AbpCompanyName .AbpProjectName .Web .Startup
23@model Abp .Application .Services .Dto .ListResultOutput <AbpCompanyName .AbpProjectName .Users .Dto .UserListDto >
34@{
4- ViewBag .CurrentPageName = " Users" ; // The menu item will be active for this page.
5+ ViewBag .CurrentPageName = PageNames . Users ; // The menu item will be active for this page.
56}
67@section scripts
78{
You can’t perform that action at this time.
0 commit comments