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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
deploy_keys_controller.rb
app/controllers/deploy_keys_controller.rb
+1
-1
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
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
app/views/deploy_keys/index.html.haml
View file @
930f4366
...
...
@@ -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
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