mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2025-01-31 02:51:42 +00:00
expand inactive users when filter is applied
This commit is contained in:
parent
8e02438ea7
commit
15f4cc0c85
1 changed files with 29 additions and 27 deletions
|
@ -624,7 +624,9 @@ local function r_users(show_special, filter_negative)
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
print(format([[<details><summary>{+users.inactive_list}</summary><ul class="userlist">]]))
|
print(format([[
|
||||||
|
<details {oclass}><summary>{+users.inactive_list}</summary><ul class="userlist">
|
||||||
|
]], { oclass = query.prefix and "open" or "" }))
|
||||||
for _, user in ipairs(users) do
|
for _, user in ipairs(users) do
|
||||||
if user.time <= inactive_cutoff then show_user(user) end
|
if user.time <= inactive_cutoff then show_user(user) end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue