aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xabrechenbarkeit.lua6
-rw-r--r--style.css8
2 files changed, 12 insertions, 2 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua
index ba12b7a..165681c 100755
--- a/abrechenbarkeit.lua
+++ b/abrechenbarkeit.lua
@@ -354,7 +354,7 @@ end
local function r_log(filter)
return respond(200, "Abrechnungen", function()
print([[<table class="log"]])
- print([[<tr>
+ print([[<thead><tr>
<th>Time</th>
<th>Username</th>
<th>Amount</th>
@@ -362,7 +362,8 @@ local function r_log(filter)
<th>P.-Count</th>
<th>Comment</th>
<th>Actions</th>
- </tr>]])
+ </tr></thead>]])
+ print("<tbody>")
for time, username, amount, pcode, pcount, comment in read_log() do
if filter == nil or filter == username then
print(string.format([[
@@ -394,6 +395,7 @@ local function r_log(filter)
))
end
end
+ print("</tbody>")
print("</table>")
end)
end
diff --git a/style.css b/style.css
index b8e34b4..769a808 100644
--- a/style.css
+++ b/style.css
@@ -284,6 +284,14 @@ tr:nth-child(2n) {
background-color: var(--b0);
}
+table.log > tbody {
+ transform: rotate(180deg);
+}
+
+table.log > tbody > tr {
+ transform: rotate(180deg);
+}
+
input {
background-color: inherit;
color: white;