summaryrefslogtreecommitdiff
path: root/app/views/deploy_keys/index.html.haml
blob: 0ee9d03b0f5d355dac6ffd7ee4781ffc2db396e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
= render "repositories/head"
- if can? current_user, :admin_project, @project
  .alert-message.block-message
    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

- if @keys.any?
  %table
    - @keys.each do |key|
      = render(partial: 'show', locals: {key: key})