mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-29 00:04:35 +00:00
better title
This commit is contained in:
parent
bccab824ba
commit
368af91f8f
1 changed files with 4 additions and 4 deletions
|
@ -223,7 +223,7 @@ local function r_user(username)
|
||||||
if method == "POST" then
|
if method == "POST" then
|
||||||
notif = r_user_post(username)
|
notif = r_user_post(username)
|
||||||
end
|
end
|
||||||
return respond(200, username, function()
|
return respond(200, string.format("Strichliste: %s", username), function()
|
||||||
print(string.format("<h1>%s</h1>", username))
|
print(string.format("<h1>%s</h1>", username))
|
||||||
local balance = balances()[username]
|
local balance = balances()[username]
|
||||||
local last_txn = last_txns()[username]
|
local last_txn = last_txns()[username]
|
||||||
|
@ -277,7 +277,7 @@ local function r_user(username)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function r_log(filter)
|
local function r_log(filter)
|
||||||
return respond(200, "Log", function()
|
return respond(200, "Strichliste Log", function()
|
||||||
print("<table>")
|
print("<table>")
|
||||||
print("<tr><th>Time</th><th>Username</th><th>Amount</th><th>Comment</th></tr>")
|
print("<tr><th>Time</th><th>Username</th><th>Amount</th><th>Comment</th></tr>")
|
||||||
for time, username, amount, comment in read_log() do
|
for time, username, amount, comment in read_log() do
|
||||||
|
@ -312,7 +312,7 @@ local function r_log(filter)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function r_index()
|
local function r_index()
|
||||||
return respond(200, "Users", function()
|
return respond(200, "Strichliste", function()
|
||||||
print([[
|
print([[
|
||||||
<form action="/" method="GET" class="box">
|
<form action="/" method="GET" class="box">
|
||||||
<h3>User Creation</h3>
|
<h3>User Creation</h3>
|
||||||
|
@ -344,7 +344,7 @@ local function r_create_user()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function r_products()
|
local function r_products()
|
||||||
respond(200, "Product List", function()
|
respond(200, "Strichliste Product List", function()
|
||||||
print("<h1>Product List</h1>")
|
print("<h1>Product List</h1>")
|
||||||
print("<table><tr><th>Name</th><th>Price</th><th>Amount</th></tr>")
|
print("<table><tr><th>Name</th><th>Price</th><th>Amount</th></tr>")
|
||||||
for barcode, price, name in read_products() do
|
for barcode, price, name in read_products() do
|
||||||
|
|
Loading…
Reference in a new issue