summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-10 19:13:55 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-10 19:13:55 +0300
commitbbdf7d41906d49a77456f1d5eb4789e61e967ae1 (patch)
tree026a42b82b857579072122920e253541c6b1eeec /app/views
parent3c358922bd0144067fd7ec92b7e3de7b52bebcf8 (diff)
downloadgitlab-ci-bbdf7d41906d49a77456f1d5eb4789e61e967ae1.tar.gz
preview generated yaml
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/edit.html.haml22
1 files changed, 18 insertions, 4 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index ab28b46..d8d82c2 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -1,7 +1,21 @@
- if @project.generated_yaml_config
- %p.alert.alert-danger
- CI Jobs are deprecated now, you can #{link_to "download yaml", dumped_yaml_project_path(@project)}
- file which is based on your old jobs.
- Put this file to the root of your project and name it .gitlab-ci.yml
+ %p.alert.alert-danger
+ CI Jobs are deprecated now, you can #{link_to "download", dumped_yaml_project_path(@project)}
+ 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'
+
+- if @project.generated_yaml_config
+ #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
+ = text_area_tag :yaml, @project.generated_yaml_config, size: "70x25", class: "form-control"
+ .modal-footer
+ %button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Close \ No newline at end of file