Browse Source

Compress template parse template error page

Vova Tkach 6 years ago
parent
commit
7556b0cf53

+ 1 - 23
engine/wrapper/resources/templates/page.tmplerror.go

@@ -1,25 +1,3 @@
 package templates
 package templates
 
 
-var PageTmplError = []byte(`<!DOCTYPE html>
-<html lang="en">
-	<head>
-		<meta charset="utf-8" />
-		<meta name="theme-color" content="#205081" />
-		<title>Template Error</title>
-		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
-		<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8" />
-		<link rel="shortcut icon" href="/assets/sys/fave.ico" type="image/x-icon" />
-		<link rel="stylesheet" type="text/css" media="all" href="/assets/sys/styles.css" />
-	</head>
-	<body>
-		<div class="wrapper">
-			<div class="logo">
-				<div class="svg">
-					<img src="/assets/sys/logo.svg" width="150" height="150" />
-				</div>
-			</div>
-			<h1>Template Error</h1>
-			<h2>%s</h2>
-		</div>
-	</body>
-</html>`)
+var PageTmplError = []byte(`<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="theme-color" content="#205081" /><title>Template Error</title><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8" /><link rel="shortcut icon" href="/assets/sys/fave.ico" type="image/x-icon" /><link rel="stylesheet" type="text/css" media="all" href="/assets/sys/styles.css" /></head><body><div class="wrapper"><div class="logo"><div class="svg"><img src="/assets/sys/logo.svg" width="150" height="150" /></div></div><h1>Template Error</h1><h2>%s</h2></div></body></html>`)

+ 23 - 0
engine/wrapper/resources/templates/page.tmplerror.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="en">
+	<head>
+		<meta charset="utf-8" />
+		<meta name="theme-color" content="#205081" />
+		<title>Template Error</title>
+		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+		<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8" />
+		<link rel="shortcut icon" href="/assets/sys/fave.ico" type="image/x-icon" />
+		<link rel="stylesheet" type="text/css" media="all" href="/assets/sys/styles.css" />
+	</head>
+	<body>
+		<div class="wrapper">
+			<div class="logo">
+				<div class="svg">
+					<img src="/assets/sys/logo.svg" width="150" height="150" />
+				</div>
+			</div>
+			<h1>Template Error</h1>
+			<h2>%s</h2>
+		</div>
+	</body>
+</html>