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
iv
gitlab-ce
Commits
f7b911d2
Commit
f7b911d2
authored
Dec 29, 2011
by
miks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Path correction
parent
753d4cb2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/deploy_keys_controller.rb
app/controllers/deploy_keys_controller.rb
+2
-2
app/views/deploy_keys/_show.html.haml
app/views/deploy_keys/_show.html.haml
+1
-1
app/views/deploy_keys/show.html.haml
app/views/deploy_keys/show.html.haml
+1
-1
No files found.
app/controllers/deploy_keys_controller.rb
View file @
f7b911d2
...
@@ -24,7 +24,7 @@ class DeployKeysController < ApplicationController
...
@@ -24,7 +24,7 @@ class DeployKeysController < ApplicationController
end
end
def
create
def
create
@key
=
@project
.
deploy_keys
.
new
(
params
[
:key
])
@key
=
@project
.
deploy_keys
.
new
(
params
[
:
deploy_
key
])
@key
.
save
@key
.
save
respond_with
(
@key
)
respond_with
(
@key
)
...
@@ -35,7 +35,7 @@ class DeployKeysController < ApplicationController
...
@@ -35,7 +35,7 @@ class DeployKeysController < ApplicationController
@key
.
destroy
@key
.
destroy
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
deploy_keys_url
}
format
.
html
{
redirect_to
project_
deploy_keys_url
}
format
.
js
{
render
:nothing
=>
true
}
format
.
js
{
render
:nothing
=>
true
}
end
end
end
end
...
...
app/views/deploy_keys/_show.html.haml
View file @
f7b911d2
%a
.update-item
{
:href
=>
project_deploy_key_path
(
key
)}
%a
.update-item
{
:href
=>
project_deploy_key_path
(
key
.
project
,
key
)}
%span
.update-title
%span
.update-title
=
key
.
title
=
key
.
title
%span
.update-author
%span
.update-author
...
...
app/views/deploy_keys/show.html.haml
View file @
f7b911d2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
%pre
=
@key
.
key
%pre
=
@key
.
key
.clear
.clear
.buttons
.buttons
=
link_to
'Remove'
,
@key
,
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"red-button delete-key right"
=
link_to
'Remove'
,
project_deploy_key_path
(
@key
.
project
,
@key
)
,
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"red-button delete-key right"
.clear
.clear
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