Browse Source

Rename mount points

Vova Tkach 6 years ago
parent
commit
c73e1d534d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      modules/module_blog.go

+ 6 - 6
modules/module_blog.go

@@ -23,9 +23,9 @@ func (this *Modules) RegisterModule_Blog() *Module {
 			{Mount: "add", Name: "Add new post", Show: true, Icon: assets.SysSvgIconPlus},
 			{Mount: "add", Name: "Add new post", Show: true, Icon: assets.SysSvgIconPlus},
 			{Mount: "modify", Name: "Modify post", Show: false},
 			{Mount: "modify", Name: "Modify post", Show: false},
 			{Sep: true, Show: true},
 			{Sep: true, Show: true},
-			{Mount: "cats", Name: "List of categories", Show: true, Icon: assets.SysSvgIconList},
-			{Mount: "cats-add", Name: "Add new category", Show: true, Icon: assets.SysSvgIconPlus},
-			{Mount: "cats-modify", Name: "Modify category", Show: false},
+			{Mount: "categories", Name: "List of categories", Show: true, Icon: assets.SysSvgIconList},
+			{Mount: "categories-add", Name: "Add new category", Show: true, Icon: assets.SysSvgIconPlus},
+			{Mount: "categories-modify", Name: "Modify category", Show: false},
 		},
 		},
 	}, nil, func(wrap *wrapper.Wrapper) (string, string, string) {
 	}, nil, func(wrap *wrapper.Wrapper) (string, string, string) {
 		content := ""
 		content := ""
@@ -35,7 +35,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 				{Name: "List of posts"},
 				{Name: "List of posts"},
 			})
 			})
 			//
 			//
-		} else if wrap.CurrSubModule == "cats" {
+		} else if wrap.CurrSubModule == "categories" {
 			content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 			content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 				{Name: "List of categories"},
 				{Name: "List of categories"},
 			})
 			})
@@ -74,8 +74,8 @@ func (this *Modules) RegisterModule_Blog() *Module {
 				})
 				})
 			}
 			}
 			//
 			//
-		} else if wrap.CurrSubModule == "cats-add" || wrap.CurrSubModule == "cats-modify" {
-			if wrap.CurrSubModule == "cats-add" {
+		} else if wrap.CurrSubModule == "categories-add" || wrap.CurrSubModule == "categories-modify" {
+			if wrap.CurrSubModule == "categories-add" {
 				content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 				content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 					{Name: "Add new category"},
 					{Name: "Add new category"},
 				})
 				})