Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « deploy_keys « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cfa2adf92eefb0ab6bf5f9bb8951600768a7d8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.row
  .col-md-4
    .panel.panel-default
      .panel-heading
        Deploy Key
      %ul.well-list
        %li
          %span.light Title:
          %strong= @deploy_key.title
        %li
          %span.light Created on:
          %strong= @deploy_key.created_at.stamp("Aug 21, 2011")

    .panel.panel-default
      .panel-heading Projects (#{@deploy_key.deploy_keys_projects.count})
      - if @deploy_key.deploy_keys_projects.any?
        %ul.well-list
          - @deploy_key.projects.each do |project|
            %li
              %span
                %strong
                = link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
              .pull-right
                = link_to disable_namespace_project_deploy_key_path(project.namespace, project, @deploy_key), data: { confirm: "Are you sure?" }, method: :put, class: "btn-xs btn btn-remove", title: 'Remove deploy key from project' do
                  %i.fa.fa-times.fa-inverse

  .col-md-8
    %p
      %span.light Fingerprint:
      %strong= @deploy_key.fingerprint
    %pre.well-pre
      = @deploy_key.key
  .pull-right
    = link_to 'Remove', admin_deploy_key_path(@deploy_key), data: {confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove delete-key"