Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c382bd26
Commit
c382bd26
authored
Apr 20, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve performance of the personal access tokens page.
parent
4e7acd88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/views/profiles/personal_access_tokens/index.html.haml
app/views/profiles/personal_access_tokens/index.html.haml
+6
-6
No files found.
app/views/profiles/personal_access_tokens/index.html.haml
View file @
c382bd26
...
...
@@ -28,9 +28,9 @@
%hr
%h5
=
"Active Personal Access Tokens (
#{
@active_personal_access_tokens
.
count
}
)"
%h5
=
"Active Personal Access Tokens (
#{
@active_personal_access_tokens
.
length
}
)"
-
if
@active_personal_access_tokens
.
exists
?
-
if
@active_personal_access_tokens
.
present
?
.table-responsive
%table
.table.table-striped.table-hover.active-personal-access-tokens
%thead
...
...
@@ -41,7 +41,7 @@
%th
Expires
%th
Actions
%tbody
-
@active_personal_access_tokens
.
active
.
each
do
|
token
|
-
@active_personal_access_tokens
.
each
do
|
token
|
%tr
%td
=
token
.
name
%td
.input-group.personal-access-tokens-token-column
...
...
@@ -62,9 +62,9 @@
%hr
%h5
=
"Inactive Personal Access Tokens (
#{
@inactive_personal_access_tokens
.
count
}
)"
%h5
=
"Inactive Personal Access Tokens (
#{
@inactive_personal_access_tokens
.
length
}
)"
-
if
@inactive_personal_access_tokens
.
exists
?
-
if
@inactive_personal_access_tokens
.
present
?
.table-responsive
%table
.table.table-striped.table-hover.inactive-personal-access-tokens
%thead
...
...
@@ -73,7 +73,7 @@
%th
Token
%th
Created
%tbody
-
@inactive_personal_access_tokens
.
order
(
"revoked, expires_at"
).
each
do
|
token
|
-
@inactive_personal_access_tokens
.
each
do
|
token
|
%tr
%td
=
token
.
name
%td
.input-group.personal-access-tokens-token-column
...
...
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