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
Boxiang Sun
gitlab-ce
Commits
00cf529a
Commit
00cf529a
authored
Mar 09, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark internal users in the admin panel
and don't offer to impersonate them
parent
90d924dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/views/admin/users/_head.html.haml
app/views/admin/users/_head.html.haml
+3
-1
No files found.
app/views/admin/users/_head.html.haml
View file @
00cf529a
...
...
@@ -2,11 +2,13 @@
=
@user
.
name
-
if
@user
.
blocked?
%span
.cred
(Blocked)
-
if
@user
.
internal?
%span
.cred
(Internal)
-
if
@user
.
admin
%span
.cred
(Admin)
.pull-right
-
unless
@user
==
current_user
||
@user
.
blocked?
-
if
@user
!=
current_user
&&
@user
.
can?
(
:log_in
)
=
link_to
'Impersonate'
,
impersonate_admin_user_path
(
@user
),
method: :post
,
class:
"btn btn-nr btn-grouped btn-info"
=
link_to
edit_admin_user_path
(
@user
),
class:
"btn btn-nr btn-grouped"
do
%i
.fa.fa-pencil-square-o
...
...
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