edit.html.haml 1003 字节
Newer Older
1
- if @ci_project.generated_yaml_config
D
Douwe Maan 已提交
2
  %p.alert.alert-danger
3
    CI Jobs are deprecated now, you can #{link_to "download", dumped_yaml_ci_project_path(@ci_project)}
D
Douwe Maan 已提交
4 5 6 7 8 9 10
    or
    %a.preview-yml{:href => "#yaml-content", "data-toggle" => "modal"} preview
    yaml file which is based on your old jobs.
    Put this file to the root of your project and name it .gitlab-ci.yml

= render 'form'

11
- if @ci_project.generated_yaml_config
D
Douwe Maan 已提交
12 13 14 15 16 17 18
  #yaml-content.modal.fade{"aria-hidden" => "true", "aria-labelledby" => ".gitlab-ci.yml", :role => "dialog", :tabindex => "-1"}
    .modal-dialog
      .modal-content
        .modal-header
          %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", :type => "button"} ×
          %h4.modal-title Content of .gitlab-ci.yml
        .modal-body
19
          = text_area_tag :yaml, @ci_project.generated_yaml_config, size: "70x25", class: "form-control"
D
Douwe Maan 已提交
20 21
        .modal-footer
          %button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Close