mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
refact: job-page/service template to use contextual components
This commit is contained in:
@@ -1,29 +1,18 @@
|
||||
<JobPage::Parts::Body @job={{this.job}}>
|
||||
<JobPage::Parts::Error @errorMessage={{this.errorMessage}} @onDismiss={{action "clearErrorMessage"}} />
|
||||
|
||||
<JobPage::Parts::Title @job={{this.job}} @handleError={{action "handleError"}} />
|
||||
|
||||
<JobPage::Parts::StatsBox @job={{this.job}} />
|
||||
|
||||
{{#if (can "accept recommendations")}}
|
||||
{{#each this.job.recommendationSummaries as |summary|}}
|
||||
<Das::RecommendationAccordion @summary={{summary}} />
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
<JobPage::Parts::Summary @job={{this.job}} />
|
||||
|
||||
<JobPage::Parts::PlacementFailures @job={{this.job}} />
|
||||
|
||||
<JobPage::Parts::LatestDeployment @job={{this.job}} @handleError={{action "handleError"}} />
|
||||
|
||||
<JobPage::Parts::TaskGroups
|
||||
@job={{this.job}}
|
||||
@sortProperty={{this.sortProperty}}
|
||||
@sortDescending={{this.sortDescending}}
|
||||
@gotoTaskGroup={{this.gotoTaskGroup}} />
|
||||
|
||||
<JobPage::Parts::RecentAllocations @job={{this.job}} />
|
||||
|
||||
<JobPage::Parts::Meta @job={{this.job}} />
|
||||
</JobPage::Parts::Body>
|
||||
<JobPage @job={{@job}} as |jobPage|>
|
||||
<jobPage.ui.Body>
|
||||
<jobPage.ui.Error />
|
||||
<jobPage.ui.Title />
|
||||
<jobPage.ui.StatsBox />
|
||||
<jobPage.ui.DasRecommendations />
|
||||
<jobPage.ui.Summary />
|
||||
<jobPage.ui.PlacementFailures />
|
||||
<jobPage.ui.LatestDeployment />
|
||||
<jobPage.ui.TaskGroups
|
||||
@sortProperty={{@sortProperty}}
|
||||
@sortDescending={{@sortDescending}}
|
||||
@gotoTaskGroup={{@gotoTaskGroup}}
|
||||
/>
|
||||
<jobPage.ui.RecentAllocations />
|
||||
<jobPage.ui.Meta />
|
||||
</jobPage.ui.Body>
|
||||
</JobPage>
|
||||
Reference in New Issue
Block a user