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
|
@ -561,7 +561,7 @@ local function r_users(show_special, filter_negative)
|
|||
end
|
||||
|
||||
for _, user in ipairs(users) do
|
||||
user.firstchar = user.name:sub(1,1):lower()
|
||||
user.firstchar = user.name:sub(1, 1):lower()
|
||||
if user.firstchar ~= "@" and not contains(user.firstchar) then
|
||||
table.insert(firstletters, user.firstchar)
|
||||
end
|
||||
|
@ -624,7 +624,9 @@ local function r_users(show_special, filter_negative)
|
|||
|
||||
return
|
||||
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
|
||||
if user.time <= inactive_cutoff then show_user(user) end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue