BigW Consortium Gitlab

Commit 930f4366 by Dmitriy Zaporozhets

Usability improvements to deploy leys

parent 3022b9fd
......@@ -54,6 +54,6 @@ class DeployKeysController < ProjectResourceController
protected
def available_keys
@available_keys ||= DeployKey.in_projects(current_user.owned_projects)
@available_keys ||= DeployKey.in_projects(current_user.owned_projects).uniq
end
end
......@@ -18,9 +18,15 @@
%small for this project
%ul.bordered-list
= 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
%h5
Available deploy keys
%small from projects you are able to manage
%ul.bordered-list
= 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