diff options
author | metamuffin <metamuffin@disroot.org> | 2024-10-31 02:04:18 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-10-31 02:04:18 +0100 |
commit | 368af91f8f55ff6356eb591e0d61873a1501794d (patch) | |
tree | 964d4c41e2fcc6c7351a71bc0c306e776139f0a7 | |
parent | bccab824ba3c62bbdd7c957819ecdba75e648f44 (diff) | |
download | abrechenbarkeit-368af91f8f55ff6356eb591e0d61873a1501794d.tar abrechenbarkeit-368af91f8f55ff6356eb591e0d61873a1501794d.tar.bz2 abrechenbarkeit-368af91f8f55ff6356eb591e0d61873a1501794d.tar.zst |
better title
-rwxr-xr-x | strichliste.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/strichliste.lua b/strichliste.lua index 004d276..fbdfbb5 100755 --- a/strichliste.lua +++ b/strichliste.lua @@ -223,7 +223,7 @@ local function r_user(username) if method == "POST" then notif = r_user_post(username) end - return respond(200, username, function() + return respond(200, string.format("Strichliste: %s", username), function() print(string.format("<h1>%s</h1>", username)) local balance = balances()[username] local last_txn = last_txns()[username] @@ -277,7 +277,7 @@ local function r_user(username) end local function r_log(filter) - return respond(200, "Log", function() + return respond(200, "Strichliste Log", function() print("<table>") print("<tr><th>Time</th><th>Username</th><th>Amount</th><th>Comment</th></tr>") for time, username, amount, comment in read_log() do @@ -312,7 +312,7 @@ local function r_log(filter) end local function r_index() - return respond(200, "Users", function() + return respond(200, "Strichliste", function() print([[ <form action="/" method="GET" class="box"> <h3>User Creation</h3> @@ -344,7 +344,7 @@ local function r_create_user() end local function r_products() - respond(200, "Product List", function() + respond(200, "Strichliste Product List", function() print("<h1>Product List</h1>") print("<table><tr><th>Name</th><th>Price</th><th>Amount</th></tr>") for barcode, price, name in read_products() do |