Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
c6dd7132
Commit
c6dd7132
authored
3 years ago
by
Jai Bhagat
Browse files
Options
Download
Email Patches
Plain Diff
chore: prettify job-page/summary
parent
febcd5ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/app/templates/components/job-page/parts/summary.hbs
+31
-16
ui/app/templates/components/job-page/parts/summary.hbs
with
31 additions
and
16 deletions
+31
-16
ui/app/templates/components/job-page/parts/summary.hbs
+
31
-
16
View file @
c6dd7132
<ListAccordion
data-test-job-summary
@
source=
{{
array
this
.
job
}}
@
key=
"id"
@
startExpanded=
{{
this
.
isExpanded
}}
@
onToggle=
{{
action
this
.
persist
}}
as
|
a
|
>
<ListAccordion
data-test-job-summary
@
source=
{{
array
this
.
job
}}
@
key=
"id"
@
startExpanded=
{{
this
.
isExpanded
}}
@
onToggle=
{{
action
this
.
persist
}}
as
|
a
|
>
<a.head
@
buttonLabel=
{{
if
a
.
isOpen
"collapse"
"expand"
}}
>
<div
class=
"columns"
>
<div
class=
"column is-minimum nowrap"
>
...
...
@@ -14,7 +20,6 @@
</span>
{{/if}}
</div>
{{#
unless
a
.
isOpen
}}
<div
class=
"column"
>
<div
class=
"inline-chart bumper-left"
>
...
...
@@ -22,7 +27,9 @@
{{#if
(
gt
a
.
item
.
totalChildren
0
)
}}
<ChildrenStatusBar
@
job=
{{
a
.
item
}}
@
isNarrow=
{{
true
}}
/>
{{else}}
<em
class=
"is-faded"
>
No Children
</em>
<em
class=
"is-faded"
>
No Children
</em>
{{/if}}
{{else}}
<AllocationStatusBar
@
allocationContainer=
{{
a
.
item
}}
@
isNarrow=
{{
true
}}
/>
...
...
@@ -33,17 +40,25 @@
</div>
</a.head>
<a.body>
{{#
component
(
if
a
.
item
.
hasChildren
"children-status-bar"
"allocation-status-bar"
)
allocationContainer
=
a
.
item
.
summary
job
=
a
.
item
.
summary
class
=
"split-view"
as
|
chart
|
}}
<ol
data-test-legend
class=
"legend"
>
{{#
each
chart
.
data
as
|
datum
index
|
}}
<li
class=
"
{{
datum
.
className
}}
{{
if
(
eq
datum
.
label
chart
.
activeDatum
.
label
)
"is-active"
}}
{{
if
(
eq
datum
.
value
0
)
"is-empty"
}}
"
>
<JobPage::Parts::SummaryLegendItem
@
datum=
{{
datum
}}
@
index=
{{
index
}}
/>
</li>
{{/
each
}}
</ol>
{{/
component
}}
{{#
component
(
if
a
.
item
.
hasChildren
"children-status-bar"
"allocation-status-bar"
)
allocationContainer
=
a
.
item
.
summary
job
=
a
.
item
.
summary
class
=
"split-view"
as
|
chart
|
}}
<ol
data-test-legend
class=
"legend"
>
{{#
each
chart
.
data
as
|
datum
index
|
}}
<li
class=
"
{{
datum
.
className
}}
{{
if
(
eq
datum
.
label
chart
.
activeDatum
.
label
)
"is-active"
}}
{{
if
(
eq
datum
.
value
0
)
"is-empty"
}}
"
>
<JobPage::Parts::SummaryLegendItem
@
datum=
{{
datum
}}
@
index=
{{
index
}}
/>
</li>
{{/
each
}}
</ol>
{{/
component
}}
</a.body>
</ListAccordion>
</ListAccordion>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help