N°2847 - Improve fatal error page message

This commit is contained in:
Molkobain
2020-11-19 14:48:36 +01:00
parent 675a408ab9
commit 3cb5f3d07e
3 changed files with 8 additions and 4 deletions

View File

@@ -244,9 +244,6 @@ h3.clickable.open {
font-weight: bold;
margin-right: 5px;
}
~ .message{
margin-top: 6px;
}
&.message-valid{
color: $message-valid-text-color;
background-color: $message-valid-bg-color;
@@ -263,6 +260,9 @@ h3.clickable.open {
border-color: $message-error-border-color;
}
}
*:not(.message) + .message{
margin-top: 6px;
}
.text-valid{
color:$message-valid-text-color
}

View File

@@ -20,4 +20,7 @@
// Navigation menu
Dict::Add('EN US', 'English', 'English', array(
'UI:ErrorPage:UnstableVersion' => 'You are using an alpha version that may be unstable or include bugs and unfinished features. If you think this error occurred because of this please send us your feedback!',
'UI:ErrorPage:KittyDisclaimer' => 'No kitty were injured during the making of this GIF and release.
- The R&D Team',
));

View File

@@ -39,8 +39,9 @@ class ErrorPage extends NiceWebPage
$this->add("<div class=\"message message-error\">$sText</div>");
if(utils::IsEasterEggAllowed())
{
$this->add('<img src="../images/alpha-fatal-error.gif">');
$this->add('<div class="message message-valid">'.Dict::S('UI:ErrorPage:UnstableVersion').'</div>');
$this->add('<img src="../images/alpha-fatal-error.gif">');
$this->add('<div class="message message-valid">'.nl2br(Dict::S('UI:ErrorPage:KittyDisclaimer')).'</div>');
}
$this->log_error($sText);
}