Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
37a100c8
Commit
37a100c8
authored
Oct 17, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds children rows
parent
f716da65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
+31
-10
app/assets/stylesheets/pages/environments.scss
app/assets/stylesheets/pages/environments.scss
+5
-1
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+26
-9
No files found.
app/assets/stylesheets/pages/environments.scss
View file @
37a100c8
...
...
@@ -61,7 +61,11 @@
}
.table.ci-table.environments
{
.environment-children
td
:first-child
{
padding-left
:
40px
;
}
.icon-container
{
width
:
20px
;
text-align
:
center
;
...
...
app/views/projects/environments/index.html.haml
View file @
37a100c8
...
...
@@ -42,15 +42,23 @@
New environment
.table-holder
{
"v-if"
=>
"!loading && state.environments.length"
}
%table
.table
%tr
{
"is"
=>
"environment-item"
,
"inline-template"
=>
true
,
"v-for"
=>
"environment in state.environments"
,
":model"
=>
"environment"
}
%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"
,
":model"
=>
"environment"
}
%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"
,
":model"
=>
"child"
}
%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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment