This commit is contained in:
metamuffin 2024-11-04 22:16:06 +01:00
parent 0f69e739a8
commit 16de24943d
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ end
local function format_amount(amount, tag, classes)
local s = string.format("%.02f%s", amount / 100, config.unit or "")
if tag == nil then return s end
return string.format([[<%s class="amount-%s %s">%s</%s>"]], tag, amount >= 0 and "pos" or "neg", s, tag, classes or "")
return string.format([[<%s class="amount-%s %s">%s</%s>"]], tag, amount >= 0 and "pos" or "neg", classes or "", s, tag)
end
local function get_user_theme(username)

View file

@ -27,13 +27,13 @@ time.minute=minute
time.minutes=minutes
time.second=second
time.seconds=seconds
user.balance=Current balance:
user.balance=Current balance
user.form.buy.submit=Buy
user.form.buy=Buy Product
user.form.restock.submit=Restock
user.form.restock=Restock Product
user.form.transaction.submit=Update
user.form.transaction=Create Transaction
user.last_txn=Last transaction added %s.
user.last_txn=Last transaction added {time}.
user.view_log=View user log
user.lazy_creation=This user account does not exist yet. It will only be created after the first transaction.