summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 16:11:29 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 16:11:29 +0300
commit73070544cac953fa48f8059b6d406a7a4654ceae (patch)
tree905d5e2c60fd1aefd2672fe925af983cbe11021d
parent5cfc5914f29a9ff9ad5231bc4eb9027ad1bc2523 (diff)
error log: make it more readable
-rw-r--r--classes/pref/system.php4
-rw-r--r--themes/compact.css18
-rw-r--r--themes/compact_night.css18
-rw-r--r--themes/light.css18
-rw-r--r--themes/light/prefs.less10
-rw-r--r--themes/night.css18
-rw-r--r--themes/night_blue.css18
7 files changed, 70 insertions, 34 deletions
diff --git a/classes/pref/system.php b/classes/pref/system.php
index 9b8ce29be..e21209427 100644
--- a/classes/pref/system.php
+++ b/classes/pref/system.php
@@ -98,7 +98,7 @@ class Pref_System extends Handler_Protected {
print '<div style="padding : 0px" dojoType="dijit.layout.ContentPane" region="center">';
- print "<table width='100%' cellspacing='10' class='prefErrorLog'>";
+ print "<table width='100%' class='event-log'>";
print "<tr class='title'>
<td width='5%'>".__("Error")."</td>
@@ -129,7 +129,7 @@ class Pref_System extends Handler_Protected {
print "<td class='errno'>" . Logger::$errornames[$line["errno"]] . " (" . $line["errno"] . ")</td>";
print "<td class='filename'>" . $line["filename"] . ":" . $line["lineno"] . "</td>";
- print "<td class='errstr'>" . $line["errstr"] . "<hr/>" . nl2br($line["context"]) . "</td>";
+ print "<td class='errstr'>" . $line["errstr"] . "\n" . $line["context"] . "</td>";
print "<td class='login'>" . $line["login"] . "</td>";
print "<td class='timestamp'>" .
diff --git a/themes/compact.css b/themes/compact.css
index 9e936befa..d9244d4e1 100644
--- a/themes/compact.css
+++ b/themes/compact.css
@@ -1495,20 +1495,26 @@ body.ttrss_prefs fieldset.plugin label.description {
body.ttrss_prefs fieldset.plugin label.description .dijitCheckBox {
margin-right: 10px;
}
-body.ttrss_prefs .prefErrorLog tr td {
+body.ttrss_prefs .event-log tr td {
font-size: 10px;
+ padding: 8px;
+ vertical-align: top;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #ddd;
}
-body.ttrss_prefs .prefErrorLog tr .errno {
+body.ttrss_prefs .event-log tr .errno {
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
-body.ttrss_prefs .prefErrorLog tr .errstr {
+body.ttrss_prefs .event-log tr .errstr {
word-break: break-all;
+ white-space: pre-wrap;
}
-body.ttrss_prefs .prefErrorLog tr .filename,
-body.ttrss_prefs .prefErrorLog tr .login,
-body.ttrss_prefs .prefErrorLog tr .timestamp {
+body.ttrss_prefs .event-log tr .filename,
+body.ttrss_prefs .event-log tr .login,
+body.ttrss_prefs .event-log tr .timestamp {
color: #555;
}
body.ttrss_prefs hr {
diff --git a/themes/compact_night.css b/themes/compact_night.css
index 0e56dc5cc..6a10fa683 100644
--- a/themes/compact_night.css
+++ b/themes/compact_night.css
@@ -1495,20 +1495,26 @@ body.ttrss_prefs fieldset.plugin label.description {
body.ttrss_prefs fieldset.plugin label.description .dijitCheckBox {
margin-right: 10px;
}
-body.ttrss_prefs .prefErrorLog tr td {
+body.ttrss_prefs .event-log tr td {
font-size: 10px;
+ padding: 8px;
+ vertical-align: top;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #222;
}
-body.ttrss_prefs .prefErrorLog tr .errno {
+body.ttrss_prefs .event-log tr .errno {
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
-body.ttrss_prefs .prefErrorLog tr .errstr {
+body.ttrss_prefs .event-log tr .errstr {
word-break: break-all;
+ white-space: pre-wrap;
}
-body.ttrss_prefs .prefErrorLog tr .filename,
-body.ttrss_prefs .prefErrorLog tr .login,
-body.ttrss_prefs .prefErrorLog tr .timestamp {
+body.ttrss_prefs .event-log tr .filename,
+body.ttrss_prefs .event-log tr .login,
+body.ttrss_prefs .event-log tr .timestamp {
color: #ccc;
}
body.ttrss_prefs hr {
diff --git a/themes/light.css b/themes/light.css
index 8467c346f..fcf6ff115 100644
--- a/themes/light.css
+++ b/themes/light.css
@@ -1495,20 +1495,26 @@ body.ttrss_prefs fieldset.plugin label.description {
body.ttrss_prefs fieldset.plugin label.description .dijitCheckBox {
margin-right: 10px;
}
-body.ttrss_prefs .prefErrorLog tr td {
+body.ttrss_prefs .event-log tr td {
font-size: 10px;
+ padding: 8px;
+ vertical-align: top;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #ddd;
}
-body.ttrss_prefs .prefErrorLog tr .errno {
+body.ttrss_prefs .event-log tr .errno {
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
-body.ttrss_prefs .prefErrorLog tr .errstr {
+body.ttrss_prefs .event-log tr .errstr {
word-break: break-all;
+ white-space: pre-wrap;
}
-body.ttrss_prefs .prefErrorLog tr .filename,
-body.ttrss_prefs .prefErrorLog tr .login,
-body.ttrss_prefs .prefErrorLog tr .timestamp {
+body.ttrss_prefs .event-log tr .filename,
+body.ttrss_prefs .event-log tr .login,
+body.ttrss_prefs .event-log tr .timestamp {
color: #555;
}
body.ttrss_prefs hr {
diff --git a/themes/light/prefs.less b/themes/light/prefs.less
index 4d3e93688..9f8afc47a 100644
--- a/themes/light/prefs.less
+++ b/themes/light/prefs.less
@@ -112,10 +112,15 @@ body.ttrss_prefs {
}
}
- .prefErrorLog {
+ .event-log {
tr {
td {
font-size: 10px;
+ padding : 8px;
+ vertical-align : top;
+ border-width : 0 0 1px 0;
+ border-style : solid;
+ border-color : @border-default;
}
.errno {
@@ -125,7 +130,8 @@ body.ttrss_prefs {
}
.errstr {
- word-break: break-all;
+ word-break : break-all;
+ white-space : pre-wrap;
}
.filename, .login, .timestamp {
diff --git a/themes/night.css b/themes/night.css
index 86e8f0a0f..49c616bef 100644
--- a/themes/night.css
+++ b/themes/night.css
@@ -1496,20 +1496,26 @@ body.ttrss_prefs fieldset.plugin label.description {
body.ttrss_prefs fieldset.plugin label.description .dijitCheckBox {
margin-right: 10px;
}
-body.ttrss_prefs .prefErrorLog tr td {
+body.ttrss_prefs .event-log tr td {
font-size: 10px;
+ padding: 8px;
+ vertical-align: top;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #222;
}
-body.ttrss_prefs .prefErrorLog tr .errno {
+body.ttrss_prefs .event-log tr .errno {
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
-body.ttrss_prefs .prefErrorLog tr .errstr {
+body.ttrss_prefs .event-log tr .errstr {
word-break: break-all;
+ white-space: pre-wrap;
}
-body.ttrss_prefs .prefErrorLog tr .filename,
-body.ttrss_prefs .prefErrorLog tr .login,
-body.ttrss_prefs .prefErrorLog tr .timestamp {
+body.ttrss_prefs .event-log tr .filename,
+body.ttrss_prefs .event-log tr .login,
+body.ttrss_prefs .event-log tr .timestamp {
color: #ccc;
}
body.ttrss_prefs hr {
diff --git a/themes/night_blue.css b/themes/night_blue.css
index 51c12baa3..360ea9e6b 100644
--- a/themes/night_blue.css
+++ b/themes/night_blue.css
@@ -1496,20 +1496,26 @@ body.ttrss_prefs fieldset.plugin label.description {
body.ttrss_prefs fieldset.plugin label.description .dijitCheckBox {
margin-right: 10px;
}
-body.ttrss_prefs .prefErrorLog tr td {
+body.ttrss_prefs .event-log tr td {
font-size: 10px;
+ padding: 8px;
+ vertical-align: top;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #222;
}
-body.ttrss_prefs .prefErrorLog tr .errno {
+body.ttrss_prefs .event-log tr .errno {
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
-body.ttrss_prefs .prefErrorLog tr .errstr {
+body.ttrss_prefs .event-log tr .errstr {
word-break: break-all;
+ white-space: pre-wrap;
}
-body.ttrss_prefs .prefErrorLog tr .filename,
-body.ttrss_prefs .prefErrorLog tr .login,
-body.ttrss_prefs .prefErrorLog tr .timestamp {
+body.ttrss_prefs .event-log tr .filename,
+body.ttrss_prefs .event-log tr .login,
+body.ttrss_prefs .event-log tr .timestamp {
color: #ccc;
}
body.ttrss_prefs hr {