expand inactive users when filter is applied

This commit is contained in:
metamuffin 2024-11-26 19:26:30 +01:00
parent 8e02438ea7
commit 15f4cc0c85
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -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