可视化创建流水线后端代码

This commit is contained in:
moshenglv
2021-01-12 10:23:26 +08:00
parent 2f140d13f0
commit 77529319a1
23 changed files with 1147 additions and 1 deletions
@@ -0,0 +1,8 @@
json.id template.id
json.template_name template.template_name
json.stage_type template.stage_type
json.category template.category
json.content template.content
json.created_at template.created_at
json.updated_at template.updated_at
@@ -0,0 +1,4 @@
json.category category
json.templates templates do |template|
json.partial! "/ci/templates/list", template: template
end
@@ -0,0 +1,3 @@
json.templates @templates do |template|
json.partial! "/ci/templates/list", template: template
end
@@ -0,0 +1,3 @@
json.array! @category_templates do |category, templates|
json.partial! "/ci/templates/templates_by_stage", category: category, templates: templates
end