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

_deploy_key.html.haml « deploy_keys « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45f80ecd5566779148ad604829e265f57b130a1e (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
%li
  .pull-right
    - if @available_keys.include?(deploy_key)
      = link_to enable_project_deploy_key_path(@project, deploy_key), class: 'btn btn-small', method: :put do
        %i.icon-plus
        Enable
    - else
      - if deploy_key.projects.count > 1
        = link_to disable_project_deploy_key_path(@project, deploy_key), class: 'btn btn-small', method: :put do
          %i.icon-off
          Disable
      - else
        = link_to 'Remove', project_deploy_key_path(@project, deploy_key), confirm: 'You are going to remove deploy key. Are you sure?', method: :delete, class: "btn btn-remove delete-key btn-small pull-right"


  = link_to project_deploy_key_path(deploy_key.projects.include?(@project) ? @project : deploy_key.projects.first, deploy_key) do
    %i.icon-key
    %strong= deploy_key.title

  %p.light.prepend-top-10
    - deploy_key.projects.map(&:name_with_namespace).each do |project_name|
      %span.label= project_name
    %small.pull-right
      Created #{time_ago_in_words(deploy_key.created_at)} ago