Эх сурвалжийг харах

Merge pull request #1654 from sharelatex/ns-add-status-page

add status.overleaf.com to 500 page

GitOrigin-RevId: 47988918a4c2ea83b2edbd9f850d65a0d2bcdf82
Chrystal Maria Griffiths 7 жил өмнө
parent
commit
36d0e8e199

+ 9 - 1
services/web/app/views/general/500.pug

@@ -17,5 +17,13 @@ html.full-height(itemscope, itemtype='http://schema.org/Product')
 						)
 						)
 					.error-details
 					.error-details
 						p.error-status Something went wrong, sorry.
 						p.error-status Something went wrong, sorry.
-						p.error-description(ng-non-bindable) Our staff are probably looking into this, but if it continues, please contact us at #{settings.adminEmail}
+						p.error-description(ng-non-bindable) Our staff are probably looking into this, but if it continues, please check our status page at
+							|
+							|
+							a(href="http://" + settings.statusPageUrl) #{settings.statusPageUrl}
+							|
+							| or contact us at
+							|
+							a(href="mailto:" + settings.adminEmail) #{settings.adminEmail}
+							| .
 						a.error-btn(href="/") Home
 						a.error-btn(href="/") Home

+ 2 - 0
services/web/config/settings.defaults.coffee

@@ -400,6 +400,8 @@ module.exports = settings =
 
 
 	adminEmail: process.env['ADMIN_EMAIL'] or "placeholder@example.com"
 	adminEmail: process.env['ADMIN_EMAIL'] or "placeholder@example.com"
 
 
+	statusPageUrl: process.env['OVERLEAF_STATUS_URL'] or "status.overleaf.com"
+
 	brandPrefix: process.env['BRAND_PREFIX'] or "sl-" # Set to 'ol-' for overleaf styles
 	brandPrefix: process.env['BRAND_PREFIX'] or "sl-" # Set to 'ol-' for overleaf styles
 
 
 	nav:
 	nav: