Add a tooltip for elapsed time since the delivery

It adds the file util/time_ago.lua in order to re-use the function further
This commit is contained in:
Athozus 2023-07-16 19:42:08 +02:00
parent fbdaaeec11
commit 37fad48ec8
No known key found for this signature in database
GPG key ID: B50895022E8484BF
11 changed files with 239 additions and 144 deletions

View file

@ -17,6 +17,7 @@ function mail.show_message(name, id)
label[0.2,0.5;]] .. S("To") .. [[: %s]
label[0.2,0.9;]] .. S("CC") .. [[: %s]
label[0.2,1.3;]] .. S("Date") .. [[: %s]
tooltip[0.2,1.3;4.8,0.4;]] .. mail.time_ago(message.time) .. [[]
button[5.1,1;2,1;receivers;]] .. S("Receivers") .. [[]
label[0,2.1;]] .. S("Subject") .. [[: %s]