about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-05T20·25+0100
committerFlorian Klink <flokli@flokli.de>2019-12-05T20·25+0100
commitc67b3ba7ea769cd747ea2f43ee6d12943d599ae0 (patch)
treeb6e300714674b8bb4ab9308b052ee056dd070673
parenteae2eede040b769799ff3a910315e2a639f3cc57 (diff)
index.tmpl.html: change from table to div layout
This makes things a bit more condensed.
-rw-r--r--public/index.tmpl.html29
1 files changed, 9 insertions, 20 deletions
diff --git a/public/index.tmpl.html b/public/index.tmpl.html
index d7ec29c250..e04c0a349d 100644
--- a/public/index.tmpl.html
+++ b/public/index.tmpl.html
@@ -63,25 +63,14 @@
     {{ end }}
 
     <h2 id="region-log">Log</h2>
-    <table class="table .table-sm">
-      <tbody>
-        {{ range $entry := .memory.Entries }}
-        <tr class="bg-dark {{ levelToClasses $entry.Level }}">
-          <td rowspan="2">
-            {{ $entry.Timestamp.Format "2006-01-02 15:04:05 UTC"}}
-          </td>
-          <td>{{ $entry.Level }}</td>
-          <td>
-            <code class="{{ levelToClasses $entry.Level }}">{{ $entry.Message }}</code><br />
-          </td>
-        </tr>
-        <tr class="bg-dark {{ levelToClasses $entry.Level }}">
-          <td colspan="2">
-              <code class="{{ levelToClasses $entry.Level }}">{{ fieldsToJSON $entry.Fields }}</code><br />
-          </td>
-        </tr>
-        {{ end }}
-      </tbody>
-    </table>
+    {{ range $entry := .memory.Entries }}
+    <div class="d-flex flex-row bg-dark {{ levelToClasses $entry.Level }} text-monospace"> 
+      <div class="p-2"><small>{{ $entry.Timestamp.Format "2006-01-02 15:04:05 UTC"}}</small></div>
+      <div class="p-2 flex-grow-1"><small><strong>{{ $entry.Message }}</strong></small></div>
+    </div>
+    <div class="bg-dark {{ levelToClasses $entry.Level }} text-monospace text-break" style="padding-left: 4rem"> 
+    <small>{{ fieldsToJSON $entry.Fields }}</small>
+    </div>
+    {{ end }}
 </body>
 </html>