mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2847 - Improve fatal error page message
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
));
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user