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)
14
14
context . Manager . MainMenu
15
15
. AddItem (
16
16
new MenuItemDefinition (
17
- " Home" ,
17
+ PageNames . Home ,
18
18
L ( "HomePage" ) ,
19
19
url : "" ,
20
20
icon : "fa fa-home" ,
21
21
requiresAuthentication : true
22
22
)
23
23
) . AddItem (
24
24
new MenuItemDefinition (
25
- " Tenants" ,
25
+ PageNames . Tenants ,
26
26
L ( "Tenants" ) ,
27
27
url : "Tenants" ,
28
28
icon : "fa fa-globe" ,
29
29
requiredPermissionName : PermissionNames . Pages_Tenants
30
30
)
31
31
) . AddItem (
32
32
new MenuItemDefinition (
33
- " Users" ,
33
+ PageNames . Users ,
34
34
L ( "Users" ) ,
35
35
url : "Users" ,
36
36
icon : "fa fa-users" ,
37
37
requiredPermissionName : PermissionNames . Pages_Users
38
38
)
39
39
) . AddItem (
40
40
new MenuItemDefinition (
41
- " About" ,
41
+ PageNames . About ,
42
42
L ( "About" ) ,
43
43
url : "About" ,
44
44
icon : "fa fa-info"
Original file line number Diff line number Diff line change @@ -4,5 +4,7 @@ public class PageNames
4
4
{
5
5
public const string Home = "Home" ;
6
6
public const string About = "About" ;
7
+ public const string Tenants = "Tenants" ;
8
+ public const string Users = "Users" ;
7
9
}
8
10
}
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.
3
4
}
4
5
<div >
5
6
<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.
3
4
}
4
5
<h1 >@L( "WellcomeMessage")</h1 >
5
6
<div class =" row" >
Original file line number Diff line number Diff line change 1
1
@using Abp .MultiTenancy
2
2
@using AbpCompanyName .AbpProjectName .MultiTenancy
3
+ @using AbpCompanyName .AbpProjectName .Web .Startup
3
4
@model Abp .Application .Services .Dto .ListResultOutput <AbpCompanyName .AbpProjectName .MultiTenancy .Dto .TenantListDto >
4
5
@{
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.
6
7
}
7
8
@section scripts
8
9
{
Original file line number Diff line number Diff line change 1
1
@using Abp .Authorization .Users
2
+ @using AbpCompanyName .AbpProjectName .Web .Startup
2
3
@model Abp .Application .Services .Dto .ListResultOutput <AbpCompanyName .AbpProjectName .Users .Dto .UserListDto >
3
4
@{
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.
5
6
}
6
7
@section scripts
7
8
{
You can’t perform that action at this time.
0 commit comments