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
11852e16
Commit
11852e16
authored
Jun 02, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jouve/gitlab-ce-admin_keys' into 'master'
redirect to keys index instead of user index after a key is deleted See merge request !11856
parents
1e8dbd46
1167a274
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
keys_controller.rb
app/controllers/admin/keys_controller.rb
+2
-2
jouve-gitlab-ce-admin_keys.yml
changelogs/unreleased/jouve-gitlab-ce-admin_keys.yml
+5
-0
No files found.
app/controllers/admin/keys_controller.rb
View file @
11852e16
...
@@ -15,9 +15,9 @@ class Admin::KeysController < Admin::ApplicationController
...
@@ -15,9 +15,9 @@ class Admin::KeysController < Admin::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
if
key
.
destroy
if
key
.
destroy
format
.
html
{
redirect_to
[
:admin
,
user
]
,
notice:
'User key was successfully removed.'
}
format
.
html
{
redirect_to
keys_admin_user_path
(
user
)
,
notice:
'User key was successfully removed.'
}
else
else
format
.
html
{
redirect_to
[
:admin
,
user
]
,
alert:
'Failed to remove user key.'
}
format
.
html
{
redirect_to
keys_admin_user_path
(
user
)
,
alert:
'Failed to remove user key.'
}
end
end
end
end
end
end
...
...
changelogs/unreleased/jouve-gitlab-ce-admin_keys.yml
0 → 100644
View file @
11852e16
---
title
:
Redirect to user's keys index instead of user's index after a key is deleted
in the admin
merge_request
:
10227
author
:
Cyril Jouve
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