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

Adds children rows

parent f716da65
......@@ -62,6 +62,10 @@
.table.ci-table.environments {
.environment-children td:first-child {
padding-left: 40px;
}
.icon-container {
width: 20px;
text-align: center;
......
......@@ -42,7 +42,15 @@
New environment
.table-holder{ "v-if" => "!loading && state.environments.length" }
%table.table
%table.table.ci-table.environments
%thead
%th Environment
%th Last Deployment
%th Build
%th Commit
%th
%th.hidden-xs
%tbody
%tr{"is"=>"environment-item",
"inline-template" => true,
"v-for" => "environment in state.environments",
......@@ -50,7 +58,7 @@
%script#environment-item-template{"type"=> "text/x-template"}
%tr
%tr.environment
%td.environment-folder-name{"@click" => "toggle"}
%span.icon-container{"v-if" => "isFolder"}
%i{"v-show" => "open"}
......@@ -60,7 +68,16 @@
= icon("caret-right")
%span.name-container
{{model.name}}
%tr{"v-show" => "open", "v-if"=>"isFolder"}
%td{"v-for" => "child in model.children",
%td
%a{{"v-if" => "model.last_deployment"}}
{{model.last_deployment.id}}
%tr.environment-children{"v-show" => "open",
"v-if"=>"isFolder",
"v-for" => "child in model.children",
":model" => "child"}
%td
{{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