diff options
-rwxr-xr-x | abrechenbarkeit.lua | 6 | ||||
-rw-r--r-- | 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) <div class="notif"><p><i>This user account does not exist yet. It will only be created after the first transaction.</i></p></div> ]]) else + print([[<div class="backgroundbox userinfo">]]) print(string.format([[ - <p><span class="balance">Current balance:</span><span class="amount-%s balance-value">%.02f€</p> + Current balance:<br><span class="amount-%s balance-value">%.02f€</span><br> ]], balance >= 0 and "pos" or "neg", balance / 100)) print(string.format([[ - <p>Last transaction added %s ago. <a href="/%s?log">View user log</a> + Last transaction added %s ago. <a href="/%s?log">View user log</a> ]], format_duration(os.time() - last_txn), username)) + print([[</div>]]) end print([[<div class="transactions container firstchildlarge">]]) print([[<div class="amount-presets backgroundbox">]]) @@ -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; |