Commit 930f4366 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Usability improvements to deploy leys

parent 3022b9fd
...@@ -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
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment