From f71092470db660252450b12c5dbd9f74d9996664 Mon Sep 17 00:00:00 2001 From: "Riley L." Date: Sun, 3 Nov 2024 22:31:20 +0100 Subject: [PATCH] style user page --- abrechenbarkeit.lua | 6 ++++-- style.css | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 00b4f11..77d7fd0 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -258,12 +258,14 @@ local function r_user(username)

This user account does not exist yet. It will only be created after the first transaction.

]]) else + print([[
]]) print(string.format([[ -

Current balance:%.02f€

+ Current balance:
%.02f€
]], balance >= 0 and "pos" or "neg", balance / 100)) print(string.format([[ -

Last transaction added %s ago. View user log + Last transaction added %s ago. View user log ]], format_duration(os.time() - last_txn), username)) + print([[

]]) end print([[
]]) print([[
]]) diff --git a/style.css b/style.css index d0b9024..c10bf61 100644 --- a/style.css +++ b/style.css @@ -138,6 +138,15 @@ li { font-size: 2em; } +h1 { + padding-left: 1rem; +} + +.userinfo { + margin-left: 1rem; + padding: 1rem; +} + /* Amount selector user page */ .amount { display: block;