mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-12-22 08:12:44 +00:00
all talks: only show 'in xxx min' for talks less than 30min in the future
This commit is contained in:
parent
8122666857
commit
d7e0fc8a47
1 changed files with 1 additions and 1 deletions
2
tile.lua
2
tile.lua
|
@ -266,7 +266,7 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2)
|
|||
local delta = talk.start_ts - time
|
||||
if delta > -60 and delta < 60 then
|
||||
talk_time = "Now"
|
||||
elseif delta > 180*60 then
|
||||
elseif delta > 30*60 then
|
||||
talk_time = talk.start_str
|
||||
elseif delta > 0 then
|
||||
talk_time = string.format("in %d min", math.floor(delta/60)+1)
|
||||
|
|
Loading…
Reference in a new issue