Commit 37a100c8 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds children rows

parent f716da65
...@@ -61,7 +61,11 @@ ...@@ -61,7 +61,11 @@
} }
.table.ci-table.environments { .table.ci-table.environments {
.environment-children td:first-child {
padding-left: 40px;
}
.icon-container { .icon-container {
width: 20px; width: 20px;
text-align: center; text-align: center;
......
...@@ -42,15 +42,23 @@ ...@@ -42,15 +42,23 @@
New environment New environment
.table-holder{ "v-if" => "!loading && state.environments.length" } .table-holder{ "v-if" => "!loading && state.environments.length" }
%table.table %table.table.ci-table.environments
%tr{"is"=>"environment-item", %thead
"inline-template" => true, %th Environment
"v-for" => "environment in state.environments", %th Last Deployment
":model" => "environment"} %th Build
%th Commit
%th
%th.hidden-xs
%tbody
%tr{"is"=>"environment-item",
"inline-template" => true,
"v-for" => "environment in state.environments",
":model" => "environment"}
%script#environment-item-template{"type"=> "text/x-template"} %script#environment-item-template{"type"=> "text/x-template"}
%tr %tr.environment
%td.environment-folder-name{"@click" => "toggle"} %td.environment-folder-name{"@click" => "toggle"}
%span.icon-container{"v-if" => "isFolder"} %span.icon-container{"v-if" => "isFolder"}
%i{"v-show" => "open"} %i{"v-show" => "open"}
...@@ -60,7 +68,16 @@ ...@@ -60,7 +68,16 @@
= icon("caret-right") = icon("caret-right")
%span.name-container %span.name-container
{{model.name}} {{model.name}}
%tr{"v-show" => "open", "v-if"=>"isFolder"} %td
%td{"v-for" => "child in model.children", %a{{"v-if" => "model.last_deployment"}}
":model" => "child"} {{model.last_deployment.id}}
%tr.environment-children{"v-show" => "open",
"v-if"=>"isFolder",
"v-for" => "child in model.children",
":model" => "child"}
%td
{{child.name}} {{child.name}}
%td.deployment-column
%span{"v-if" => "child.last_deployment && child.last_deployment.iid"}
{{child.last_deployment.iid}}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment