summaryrefslogtreecommitdiff
path: root/app/views/deploy_keys/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/deploy_keys/index.html.haml')
-rw-r--r--app/views/deploy_keys/index.html.haml25
1 files changed, 9 insertions, 16 deletions
diff --git a/app/views/deploy_keys/index.html.haml b/app/views/deploy_keys/index.html.haml
index 02c8c135998..3e8ff515ac2 100644
--- a/app/views/deploy_keys/index.html.haml
+++ b/app/views/deploy_keys/index.html.haml
@@ -1,17 +1,10 @@
= render "repositories/head"
-
-%div#keys-table{ :class => "update-data ui-box ui-box-small ui-box-big" }
- .data
- - @keys.each do |key|
- = render(:partial => 'show', :locals => {:key => key})
-
-- if @keys.blank?
- .notice_holder
- %li Deploy Keys do not exist yet.
- - if can? current_user, :admin_project, @project
- %li You can add a new one by clicking on "Add New" button
-
-:javascript
- $('.delete-key').live('ajax:success', function() {
- $(this).closest('.update-item').fadeOut(); });
-
+- if can? current_user, :admin_project, @project
+ .alert-message.block-message.info
+ Deploy keys allow read-only access to repository.
+ = link_to new_project_deploy_key_path(@project), :class => "btn small", :title => "New Deploy Key" do
+ Add Deploy Key
+
+%ul.unstyled
+ - @keys.each do |key|
+ %li= render(:partial => 'show', :locals => {:key => key})