mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +00:00
Removed brackets from timestamp, added padding
This commit is contained in:
@@ -51,6 +51,7 @@ end
|
|||||||
}
|
}
|
||||||
.timestamp {
|
.timestamp {
|
||||||
color: #909090;
|
color: #909090;
|
||||||
|
padding-right: 4px;
|
||||||
}
|
}
|
||||||
.greybordered {
|
.greybordered {
|
||||||
margin: 12px;
|
margin: 12px;
|
||||||
@@ -238,7 +239,7 @@ end
|
|||||||
var html = "<table>";
|
var html = "<table>";
|
||||||
for (var i = 0; json.vars[i]; i++) {
|
for (var i = 0; json.vars[i]; i++) {
|
||||||
var x = json.vars[i];
|
var x = json.vars[i];
|
||||||
var fullpath = (json.path + "." + x.key) .replace(/^\./, "");
|
var fullpath = (json.path + "." + x.key).replace(/^\./, "");
|
||||||
var k = truncate(x.key, 15);
|
var k = truncate(x.key, 15);
|
||||||
if (x.type == "table") {
|
if (x.type == "table") {
|
||||||
k = "<a href='#' onclick=\"setEnvPath('" + fullpath + "')\">" +
|
k = "<a href='#' onclick=\"setEnvPath('" + fullpath + "')\">" +
|
||||||
@@ -414,7 +415,7 @@ function lovebird.print(...)
|
|||||||
str = lovebird.htmlescape(str)
|
str = lovebird.htmlescape(str)
|
||||||
end
|
end
|
||||||
if lovebird.timestamp then
|
if lovebird.timestamp then
|
||||||
str = os.date('<span class="timestamp">[%H:%M:%S]</span> ') .. str
|
str = os.date('<span class="timestamp">%H:%M:%S</span> ') .. str
|
||||||
end
|
end
|
||||||
table.insert(lovebird.lines, str)
|
table.insert(lovebird.lines, str)
|
||||||
if #lovebird.lines > lovebird.maxlines then
|
if #lovebird.lines > lovebird.maxlines then
|
||||||
|
Reference in New Issue
Block a user