BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
322b5d12
Commit
322b5d12
authored
May 03, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use limited_counter_with_delimiter in the admin user list tabs
This drastically reduces page load times at gitlab.com scale.
parent
8e7b12ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
index.html.haml
app/views/admin/users/index.html.haml
+7
-7
No files found.
app/views/admin/users/index.html.haml
View file @
322b5d12
...
...
@@ -42,31 +42,31 @@
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:filter
].
nil?
)
})
do
=
link_to
admin_users_path
do
Active
%small
.badge
=
number_with_delimiter
(
User
.
active
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
active
)
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:filter
]
==
'admins'
)
})
do
=
link_to
admin_users_path
(
filter:
"admins"
)
do
Admins
%small
.badge
=
number_with_delimiter
(
User
.
admins
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
admins
)
=
nav_link
(
html_options:
{
class:
"
#{
active_when
(
params
[
:filter
]
==
'two_factor_enabled'
)
}
filter-two-factor-enabled"
})
do
=
link_to
admin_users_path
(
filter:
'two_factor_enabled'
)
do
2FA Enabled
%small
.badge
=
number_with_delimiter
(
User
.
with_two_factor
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
with_two_factor
)
=
nav_link
(
html_options:
{
class:
"
#{
active_when
(
params
[
:filter
]
==
'two_factor_disabled'
)
}
filter-two-factor-disabled"
})
do
=
link_to
admin_users_path
(
filter:
'two_factor_disabled'
)
do
2FA Disabled
%small
.badge
=
number_with_delimiter
(
User
.
without_two_factor
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
without_two_factor
)
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:filter
]
==
'external'
)
})
do
=
link_to
admin_users_path
(
filter:
'external'
)
do
External
%small
.badge
=
number_with_delimiter
(
User
.
external
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
external
)
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:filter
]
==
'blocked'
)
})
do
=
link_to
admin_users_path
(
filter:
"blocked"
)
do
Blocked
%small
.badge
=
number_with_delimiter
(
User
.
blocked
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
blocked
)
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:filter
]
==
'wop'
)
})
do
=
link_to
admin_users_path
(
filter:
"wop"
)
do
Without projects
%small
.badge
=
number_with_delimiter
(
User
.
without_projects
.
count
)
%small
.badge
=
limited_counter_with_delimiter
(
User
.
without_projects
)
%ul
.flex-list.content-list
-
if
@users
.
empty?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment