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

Adds children rows

parent f716da65
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
.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,7 +42,15 @@ ...@@ -42,7 +42,15 @@
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
%thead
%th Environment
%th Last Deployment
%th Build
%th Commit
%th
%th.hidden-xs
%tbody
%tr{"is"=>"environment-item", %tr{"is"=>"environment-item",
"inline-template" => true, "inline-template" => true,
"v-for" => "environment in state.environments", "v-for" => "environment in state.environments",
...@@ -50,7 +58,7 @@ ...@@ -50,7 +58,7 @@
%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.last_deployment.id}}
%tr.environment-children{"v-show" => "open",
"v-if"=>"isFolder",
"v-for" => "child in model.children",
":model" => "child"} ":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