From 54376299d9affae361a7b133a4578c638503605b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Tue, 18 Feb 2020 22:34:22 -0500
Subject: [PATCH] WIP
---
views/systemlogs.html | 47 +++++++++++++++++++++++++++++++++++++++
views/systemreleases.html | 2 +-
views/systemstatus.html | 2 +-
3 files changed, 49 insertions(+), 2 deletions(-)
diff --git a/views/systemlogs.html b/views/systemlogs.html
index 2c59cdec8..738dbbccb 100644
--- a/views/systemlogs.html
+++ b/views/systemlogs.html
@@ -63,6 +63,30 @@
+
+
+
+
+
+
+
+
Message
+
+
Exception
+
+
+
+
+
+
+
{% endblock body %}
{% block tail %}
@@ -175,6 +199,29 @@
table.column(0).search('').draw();
}
});
+
+ $('#logs').on('click', 'tr', function() {
+ var data = table.row( this ).data();
+
+ $("#logs_message_span").html(data[3]);
+ let exception = data[4];
+ exception = exception.replace(/'/g,"");
+ exception = exception.replace(/\\n\s\s\s\s/g, "\\n ");
+ exception = exception.replace(/\\n\s\s/g, "\\n ");
+ exception = exception.replace(/\\n/g, "
");
+ $("#logs_exception_span").html(exception);
+ if (exception.length > 1) {
+ $('#except_tag').show();
+ $('#logs_exception_span').parent().parent().show();
+ } else {
+ $('#except_tag').hide();
+ $('#logs_exception_span').parent().parent().hide();
+ }
+ $('#logsModal')
+ .modal({
+ focus: false
+ });
+ });
})
{% endblock tail %}
diff --git a/views/systemreleases.html b/views/systemreleases.html
index 722860056..9f2c0c3b7 100644
--- a/views/systemreleases.html
+++ b/views/systemreleases.html
@@ -11,7 +11,7 @@
{% endblock bcright %}
{% block body %}
-
+
{% endblock body %}
diff --git a/views/systemstatus.html b/views/systemstatus.html
index 26f30cf39..43ef3105e 100644
--- a/views/systemstatus.html
+++ b/views/systemstatus.html
@@ -11,7 +11,7 @@
{% endblock bcright %}
{% block body %}
-