summaryrefslogtreecommitdiff
path: root/app/views/ci/projects/_gl_projects.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/projects/_gl_projects.html.haml')
-rw-r--r--app/views/ci/projects/_gl_projects.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/ci/projects/_gl_projects.html.haml b/app/views/ci/projects/_gl_projects.html.haml
new file mode 100644
index 00000000000..6ed19e13887
--- /dev/null
+++ b/app/views/ci/projects/_gl_projects.html.haml
@@ -0,0 +1,15 @@
+- @gl_projects.sort_by(&:name_with_namespace).each do |project|
+ %tr.light
+ %td
+ = project.name_with_namespace
+ %td
+ %small Not added to CI
+ %td
+ %td
+ - if Ci::Project.already_added?(project)
+ %strong.cgreen
+ Added
+ - else
+ = form_tag ci_projects_path do
+ = hidden_field_tag :project, project.to_h.to_json
+ = submit_tag 'Add project to CI', class: 'btn btn-default btn-sm'