mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
webui: improve server logs modal (#7302)
This commit is contained in:
@@ -183,6 +183,12 @@ hr {
|
|||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.jackettlog-narrowcol {
|
||||||
|
width: 1px;
|
||||||
|
white-space: nowrap;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
.jackettlogWarn {
|
.jackettlogWarn {
|
||||||
background-color: #FFFF8E !important;
|
background-color: #FFFF8E !important;
|
||||||
}
|
}
|
||||||
@@ -210,11 +216,15 @@ pre {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
color: #333;
|
color: #333;
|
||||||
word-break: break-all;
|
|
||||||
word-wrap: break-word;
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
word-break: normal;
|
||||||
|
white-space: pre-wrap; /* Since CSS 2.1 */
|
||||||
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||||
|
white-space: -pre-wrap; /* Opera 4-6 */
|
||||||
|
white-space: -o-pre-wrap; /* Opera 7 */
|
||||||
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-open .modal {
|
.modal-open .modal {
|
||||||
|
@@ -175,6 +175,12 @@ hr {
|
|||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.jackettlog-narrowcol {
|
||||||
|
width: 1px;
|
||||||
|
white-space: nowrap;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
.jackettlogWarn {
|
.jackettlogWarn {
|
||||||
background-color: #FFFF8E !important;
|
background-color: #FFFF8E !important;
|
||||||
}
|
}
|
||||||
@@ -202,11 +208,15 @@ pre {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
color: #333;
|
color: #333;
|
||||||
word-break: break-all;
|
|
||||||
word-wrap: break-word;
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
word-break: normal;
|
||||||
|
white-space: pre-wrap; /* Since CSS 2.1 */
|
||||||
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||||
|
white-space: -pre-wrap; /* Opera 4-6 */
|
||||||
|
white-space: -o-pre-wrap; /* Opera 7 */
|
||||||
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-open .modal {
|
.modal-open .modal {
|
||||||
|
@@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="../bootstrap/bootstrap.min.css?changed=2017083001">
|
<link rel="stylesheet" type="text/css" href="../bootstrap/bootstrap.min.css?changed=2017083001">
|
||||||
<link rel="stylesheet" type="text/css" href="../animate.css?changed=2017083001">
|
<link rel="stylesheet" type="text/css" href="../animate.css?changed=2017083001">
|
||||||
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20200220" media="only screen and (min-device-width: 480px)">
|
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20200223" media="only screen and (min-device-width: 480px)">
|
||||||
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20200102" media="only screen and (max-device-width: 480px)">
|
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20200223" media="only screen and (max-device-width: 480px)">
|
||||||
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.min.css?changed=2017083001">
|
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.min.css?changed=2017083001">
|
||||||
<link rel="stylesheet" type="text/css" href="../css/bootstrap-multiselect.css?changed=2017083001" />
|
<link rel="stylesheet" type="text/css" href="../css/bootstrap-multiselect.css?changed=2017083001" />
|
||||||
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css?changed=2017083001">
|
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css?changed=2017083001">
|
||||||
@@ -616,16 +616,16 @@
|
|||||||
<table class="dataTable compact cell-border hover stripe">
|
<table class="dataTable compact cell-border hover stripe">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 200px">When</th>
|
<th>Date</th>
|
||||||
<th style="width: 80px">Level</th>
|
<th>Level</th>
|
||||||
<th>Message</th>
|
<th>Message</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#each logs}}
|
{{#each logs}}
|
||||||
<tr class="jackettlog{{Level}}">
|
<tr class="jackettlog{{Level}}">
|
||||||
<td>{{dateFormat When}}</td>
|
<td class="jackettlog-narrowcol">{{dateFormat When}}</td>
|
||||||
<td>{{Level}}</td>
|
<td class="jackettlog-narrowcol">{{Level}}</td>
|
||||||
<td><pre>{{Message}}</pre></td>
|
<td><pre>{{Message}}</pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
Handlebars.registerHelper('dateFormat', function (context, block) {
|
Handlebars.registerHelper('dateFormat', function (context, block) {
|
||||||
if (window.moment) {
|
if (window.moment) {
|
||||||
var f = block.hash.format || "MMM DD, YYYY hh:mm:ss A";
|
var f = block.hash.format || "YYYY-MM-DD HH:mm:ss";
|
||||||
return moment(context).format(f); //had to remove Date(context)
|
return moment(context).format(f); //had to remove Date(context)
|
||||||
} else {
|
} else {
|
||||||
return context; // moment plugin not available. return data as is.
|
return context; // moment plugin not available. return data as is.
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.registerHelper('jacketTimespan', function (context, block) {
|
Handlebars.registerHelper('jacketTimespan', function (context, block) {
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<link href="../bootstrap/bootstrap.min.css" rel="stylesheet">
|
<link href="../bootstrap/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="../animate.css" rel="stylesheet">
|
<link href="../animate.css" rel="stylesheet">
|
||||||
<link href="../custom.css" rel="stylesheet">
|
<link href="../custom.css?changed=20200223" rel="stylesheet">
|
||||||
|
|
||||||
<title>Jackett</title>
|
<title>Jackett</title>
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user