Fix container header nav for simple mode

rancher/rancher#9535
This commit is contained in:
Westly Wright 2017-08-02 12:14:17 -07:00
parent 98123333d3
commit 8ff8abfc94
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
4 changed files with 249 additions and 241 deletions

View File

@ -1,11 +1,12 @@
{{#if projectController.showOrchestrationWelcome}}
{{orchestration-welcome}}
{{else if rows.length}}
{{else}}
{{#containers-header tags=tags}}
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'nav.containers.importCompose'}}{{/link-to}}
{{#link-to "balancers.run" projects.current.id class="btn btn-sm bg-primary"}}{{t 'nav.containers.addBalancer'}}{{/link-to}}
{{/containers-header}}
{{#if rows.length}}
<section class="pl-0 pr-0">
{{#sortable-table
classNames="grid sortable-table"
@ -67,6 +68,7 @@
{{/if}}
{{/sortable-table}}
</section>
{{else}}
{{else}}
{{empty-table resource="container" newRoute="balancers.run" newTranslationKey="nav.containers.addBalancer"}}
{{/if}}
{{/if}}

View File

@ -1,11 +1,12 @@
{{#if projectController.showOrchestrationWelcome}}
{{orchestration-welcome}}
{{else if rows.length}}
{{else}}
{{#containers-header tags=tags simpleMode=simpleMode}}
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'nav.containers.importCompose'}}{{/link-to}}
{{#link-to "containers.run" projects.current.id class="btn btn-sm bg-primary"}}{{t 'nav.containers.addContainer'}}{{/link-to}}
{{/containers-header}}
{{#if rows.length}}
<section class="instances">
{{#sortable-table
tableClassNames="double-rows"
@ -80,6 +81,7 @@
{{/if}}
{{/sortable-table}}
</section>
{{else}}
{{else}}
{{empty-table resource="container" newRoute="containers.run" newTranslationKey="nav.containers.addContainer"}}
{{/if}}
{{/if}}

View File

@ -1,11 +1,12 @@
{{#if projectController.showOrchestrationWelcome}}
{{orchestration-welcome}}
{{else if rows.length}}
{{else}}
{{#containers-header tags=tags}}
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'nav.containers.importCompose'}}{{/link-to}}
{{#link-to "dns.new" projects.current.id class="btn btn-sm bg-primary"}}{{t 'nav.containers.addDns'}}{{/link-to}}
{{/containers-header}}
{{#if rows.length}}
<section class="pl-0 pr-0">
{{#sortable-table
classNames="grid sortable-table"
@ -56,6 +57,7 @@
{{/if}}
{{/sortable-table}}
</section>
{{else}}
{{else}}
{{empty-table resource="container" newRoute="dns.new" newTranslationKey="nav.containers.addDns"}}
{{/if}}
{{/if}}

View File

@ -1,11 +1,12 @@
{{#if projectController.showOrchestrationWelcome}}
{{orchestration-welcome}}
{{else if rows.length}}
{{else}}
{{#containers-header tags=tags}}
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'nav.containers.importCompose'}}{{/link-to}}
{{#link-to "volumes.new" projects.current.id class="btn btn-sm bg-primary"}}{{t 'nav.containers.addVolume'}}{{/link-to}}
{{/containers-header}}
{{#if rows.length}}
<section class="pl-0 pr-0">
{{#sortable-table
classNames="grid sortable-table"
@ -54,6 +55,7 @@
{{/if}}
{{/sortable-table}}
</section>
{{else}}
{{else}}
{{empty-table resource="container" newRoute="volumes.new" newTranslationKey="nav.containers.addVolume"}}
{{/if}}
{{/if}}