mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: sort admins and moderators by last seen date on /about page
UX: only show active admins and moderators on /about page
This commit is contained in:
@@ -36,11 +36,13 @@ class About
|
||||
def moderators
|
||||
@moderators ||= User.where(moderator: true, admin: false)
|
||||
.human_users
|
||||
.order(:username_lower)
|
||||
.order("last_seen_at DESC")
|
||||
end
|
||||
|
||||
def admins
|
||||
@admins ||= User.where(admin: true).human_users.order(:username_lower)
|
||||
@admins ||= User.where(admin: true)
|
||||
.human_users
|
||||
.order("last_seen_at DESC")
|
||||
end
|
||||
|
||||
def stats
|
||||
|
||||
Reference in New Issue
Block a user