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
74d6e492
Commit
74d6e492
authored
Dec 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More data: confirm
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7db71b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+5
-5
No files found.
app/views/admin/users/show.html.haml
View file @
74d6e492
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
%li
User will be removed from joined projects and groups
%li
User will be removed from joined projects and groups
%li
Personal projects will be left
%li
Personal projects will be left
%li
Owned groups will be left
%li
Owned groups will be left
=
link_to
'Unblock user'
,
unblock_admin_user_path
(
@user
),
method: :put
,
class:
"btn btn-new"
,
confirm:
'Are you sure?'
=
link_to
'Unblock user'
,
unblock_admin_user_path
(
@user
),
method: :put
,
class:
"btn btn-new"
,
data:
{
confirm:
'Are you sure?'
}
-
else
-
else
.alert
.alert
%h4
Block this user
%h4
Block this user
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
%li
User will be removed from joined projects and groups
%li
User will be removed from joined projects and groups
%li
Personal projects will be left
%li
Personal projects will be left
%li
Owned groups will be left
%li
Owned groups will be left
=
link_to
'Block user'
,
block_admin_user_path
(
@user
),
confirm:
'USER WILL BE BLOCKED! Are you sure?'
,
method: :put
,
class:
"btn btn-remove"
=
link_to
'Block user'
,
block_admin_user_path
(
@user
),
data:
{
confirm:
'USER WILL BE BLOCKED! Are you sure?'
}
,
method: :put
,
class:
"btn btn-remove"
.alert.alert-error
.alert.alert-error
%h4
%h4
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
%li
%li
Next groups with all content will be removed:
Next groups with all content will be removed:
%strong
#{
@user
.
solo_owned_groups
.
map
(
&
:name
).
join
(
', '
)
}
%strong
#{
@user
.
solo_owned_groups
.
map
(
&
:name
).
join
(
', '
)
}
=
link_to
'Remove user'
,
[
:admin
,
@user
],
confirm:
"USER
#{
@user
.
name
}
WILL BE REMOVED! Are you sure?"
,
method: :delete
,
class:
"btn btn-remove"
=
link_to
'Remove user'
,
[
:admin
,
@user
],
data:
{
confirm:
"USER
#{
@user
.
name
}
WILL BE REMOVED! Are you sure?"
}
,
method: :delete
,
class:
"btn btn-remove"
.span6
.span6
-
if
@user
.
users_groups
.
present?
-
if
@user
.
users_groups
.
present?
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
.pull-right
.pull-right
%span
.light
=
user_group
.
human_access
%span
.light
=
user_group
.
human_access
-
unless
user_group
.
owner?
-
unless
user_group
.
owner?
=
link_to
group_users_group_path
(
group
,
user_group
),
confirm:
remove_user_from_group_message
(
group
,
@user
)
,
method: :delete
,
remote:
true
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from group'
do
=
link_to
group_users_group_path
(
group
,
user_group
),
data:
{
confirm:
remove_user_from_group_message
(
group
,
@user
)
}
,
method: :delete
,
remote:
true
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from group'
do
%i
.icon-remove.icon-white
%i
.icon-remove.icon-white
.ui-box
.ui-box
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
%span
.light
=
tm
.
human_access
%span
.light
=
tm
.
human_access
-
if
tm
.
respond_to?
:project
-
if
tm
.
respond_to?
:project
=
link_to
project_team_member_path
(
project
,
@user
),
confirm:
remove_from_project_team_message
(
project
,
@user
)
,
remote:
true
,
method: :delete
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from project'
do
=
link_to
project_team_member_path
(
project
,
@user
),
data:
{
confirm:
remove_from_project_team_message
(
project
,
@user
)
}
,
remote:
true
,
method: :delete
,
class:
"btn-tiny btn btn-remove"
,
title:
'Remove user from project'
do
%i
.icon-remove
%i
.icon-remove
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