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
Kazuhiko Shiozaki
gitlab-ce
Commits
930f4366
Commit
930f4366
authored
May 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usability improvements to deploy leys
parent
3022b9fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/controllers/deploy_keys_controller.rb
app/controllers/deploy_keys_controller.rb
+1
-1
app/views/deploy_keys/index.html.haml
app/views/deploy_keys/index.html.haml
+6
-0
No files found.
app/controllers/deploy_keys_controller.rb
View file @
930f4366
...
@@ -54,6 +54,6 @@ class DeployKeysController < ProjectResourceController
...
@@ -54,6 +54,6 @@ class DeployKeysController < ProjectResourceController
protected
protected
def
available_keys
def
available_keys
@available_keys
||=
DeployKey
.
in_projects
(
current_user
.
owned_projects
)
@available_keys
||=
DeployKey
.
in_projects
(
current_user
.
owned_projects
)
.
uniq
end
end
end
end
app/views/deploy_keys/index.html.haml
View file @
930f4366
...
@@ -18,9 +18,15 @@
...
@@ -18,9 +18,15 @@
%small
for this project
%small
for this project
%ul
.bordered-list
%ul
.bordered-list
=
render
@enabled_keys
=
render
@enabled_keys
-
if
@enabled_keys
.
blank?
.light-well
%p
.nothing_here_message
Create
#{
link_to
'new deploy key'
,
new_project_deploy_key_path
(
@project
)
}
or add existing one
.span6.available-keys
.span6.available-keys
%h5
%h5
Available deploy keys
Available deploy keys
%small
from projects you are able to manage
%small
from projects you are able to manage
%ul
.bordered-list
%ul
.bordered-list
=
render
@available_keys
=
render
@available_keys
-
if
@available_keys
.
blank?
.light-well
%p
.nothing_here_message
All deploy keys from projects you can manage will be displayed here
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