Browse Source

Revert "Module sub-mount error 404 page"

This reverts commit e3fb7f369b63c4201832d6ac757f76fa4235182a.
Vova Tkach 6 years ago
parent
commit
a17a5c1a6f
7 changed files with 1 additions and 9 deletions
  1. BIN
      assets/cp.bg.404.jpg
  2. 0 2
      assets/cp.bg.404.jpg.go
  3. 0 5
      assets/cp.styles.css
  4. 0 0
      assets/cp.styles.css.go
  5. 0 1
      consts/consts.go
  6. 0 1
      main.go
  7. 1 0
      modules/modules.go

BIN
assets/cp.bg.404.jpg


File diff suppressed because it is too large
+ 0 - 2
assets/cp.bg.404.jpg.go


+ 0 - 5
assets/cp.styles.css

@@ -225,11 +225,6 @@ body.cp .wrap .sidebar .btn-sidebar {
 	width: 100%;
 }
 
-/* CP module not found page */
-body.cp.cp-404 .wrap .content .scroll {
-	background: url(/assets/sys/bg404.jpg) no-repeat 50% 50%;
-}
-
 /* Admin table */
 .data-table.table-hover tbody tr:hover {
 	background-color: #fffbdf;

File diff suppressed because it is too large
+ 0 - 0
assets/cp.styles.css.go


+ 0 - 1
consts/consts.go

@@ -17,7 +17,6 @@ const AssetsJqueryJs = AssetsPath + "/jquery.js"
 const AssetsPopperJs = AssetsPath + "/popper.js"
 
 // System resources
-const AssetsSysBg404Jpg = AssetsPath + "/sys/bg404.jpg"
 const AssetsCpScriptsJs = AssetsPath + "/cp/scripts.js"
 const AssetsCpStylesCss = AssetsPath + "/cp/styles.css"
 const AssetsSysBgPng = AssetsPath + "/sys/bg.png"

+ 0 - 1
main.go

@@ -53,7 +53,6 @@ func main() {
 
 	// Init mounted resources
 	res := resource.New()
-	res.Add(consts.AssetsSysBg404Jpg, "image/jpeg", assets.CpBg404Jpg)
 	res.Add(consts.AssetsCpScriptsJs, "application/javascript; charset=utf-8", assets.CpScriptsJs)
 	res.Add(consts.AssetsCpStylesCss, "text/css", assets.CpStylesCss)
 	res.Add(consts.AssetsSysBgPng, "image/png", assets.SysBgPng)

+ 1 - 0
modules/modules.go

@@ -330,6 +330,7 @@ func (this *Modules) XXXBackEnd(wrap *wrapper.Wrapper) bool {
 			}
 			if content == "" {
 				body_class = body_class + " cp-404"
+				content = "Panel 404"
 			}
 			if sidebar_right != "" {
 				body_class = body_class + " cp-sidebar-right"

Some files were not shown because too many files changed in this diff