summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-01-19 15:11:12 +0200
committerGitHub <noreply@github.com>2018-01-19 15:11:12 +0200
commit4e513f164ce3e92493ef1b20251487db4909691e (patch)
tree38c351da6f9d98bbc31c75797ff6a2a1c1b704e9 /applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm
parentf72a0c59156e693bd54d0caeab9a9cb38be37eb7 (diff)
parente6c9b3746b6d23af331050002103b05fd5862405 (diff)
Merge pull request #1564 from dibdot/travelmate-17.01
[17.01] luci-app-travelmate: release 1.0.2
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm')
-rw-r--r--applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm20
1 files changed, 20 insertions, 0 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm
new file mode 100644
index 000000000..6cbeaffde
--- /dev/null
+++ b/applications/luci-app-travelmate/luasrc/view/travelmate/logread.htm
@@ -0,0 +1,20 @@
+<%#
+Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
+This is free software, licensed under the Apache License, Version 2.0
+-%>
+
+<%+header%>
+
+<div class="cbi-map">
+ <fieldset class="cbi-section">
+ <div class="cbi-section-descr"><%:This form shows the syslog output, pre-filtered for travelmate related messages only.%></div>
+ <textarea id="logread_id" style="width: 100%; height: 450px; border: 1px solid #cccccc; padding: 5px; font-size: 12px; font-family: monospace; resize: none;" readonly="readonly" wrap="off" rows="<%=content:cmatch("\n")+2%>"><%=content:pcdata()%></textarea>
+ </fieldset>
+</div>
+
+<script type="text/javascript">
+ var textarea = document.getElementById('logread_id');
+ textarea.scrollTop = textarea.scrollHeight;
+</script>
+
+<%+footer%>