Просмотр исходного кода

Improve wording on error pages.

Paulo Reis 9 лет назад
Родитель
Сommit
f298fac638

+ 0 - 1
services/web/app/views/general/404.pug

@@ -10,7 +10,6 @@ block content
 						alt="Not found"
 					)
 				.error-details
-					h1.error-code 404
 					p.error-status Not found
 					p.error-description #{translate("cant_find_page")}
 					a.error-btn(href="/") Home

+ 2 - 3
services/web/app/views/general/500.pug

@@ -16,9 +16,8 @@ html.full-height(itemscope, itemtype='http://schema.org/Product')
 							alt="Error"
 						)
 					.error-details
-						h1.error-code 500
-						p.error-status Ooops
-						p.error-description Looks like something went wrong
+						p.error-status Something went wrong, sorry.
+						p.error-description Our staff are probably looking into this, but if it continues, please contact us at #{settings.adminEmail}
 						a.error-btn(href="/") Home
 		//- .content
 		//- 	.container

+ 0 - 8
services/web/public/stylesheets/app/error-pages.less

@@ -56,17 +56,9 @@
 		flex: 0 1 50%;
 		padding: @line-height-computed * 2;
 	}
-		.error-code {
-			font-family: @font-family-sans-serif;
-			font-size: @font-size-h1 * 4;
-			font-weight: 800;
-			color: @red;
-			margin-bottom: @line-height-computed;
-		}
 		.error-status {
 			font-family: @font-family-serif;
 			margin-bottom: (@line-height-computed / 4);
-			line-height: 1;
 			color: @gray-dark;
 			font-size: @font-size-h1;
 		}