mirror of https://github.com/rancher/ui.git
Template Lint
This commit is contained in:
parent
0a58aed31b
commit
ad534686e9
|
|
@ -42,7 +42,7 @@
|
|||
<section>
|
||||
{{#if rows.length}}
|
||||
{{#sortable-table
|
||||
classNames="grid fixed mb-0 sortable-table"
|
||||
classNames="grid fixed mb-0 sortable-table"
|
||||
body=rows
|
||||
descending=descending
|
||||
groupByKey=groupTableBy
|
||||
|
|
@ -53,16 +53,36 @@
|
|||
as |sortable kind row|
|
||||
}}
|
||||
{{#if (eq kind "row")}}
|
||||
{{certificate-row model=row dt=dt}}
|
||||
{{certificate-row
|
||||
model=row
|
||||
dt=dt
|
||||
}}
|
||||
{{else if (eq kind "group")}}
|
||||
{{namespace-group model=row.ref noGroup="namespaceGroup.project" fullColspan=sortable.fullColspan}}
|
||||
{{namespace-group
|
||||
model=row.ref
|
||||
noGroup="namespaceGroup.project"
|
||||
fullColspan=sortable.fullColspan
|
||||
}}
|
||||
{{else if (eq kind "nomatch")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "certificatesPage.index.noMatch"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "certificatesPage.index.noMatch"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{else if (eq kind "norows")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "certificatesPage.index.noData"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "certificatesPage.index.noData"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/sortable-table}}
|
||||
{{else}}
|
||||
{{empty-table disabled=(rbac-prevents resource="certificate" scope="project" permission="create") resource="certificate" newRoute="authenticated.project.certificates.new" newTranslationKey="certificatesPage.index.linkTo"}}
|
||||
{{empty-table
|
||||
disabled=(rbac-prevents resource="certificate" scope="project" permission="create")
|
||||
resource="certificate"
|
||||
newRoute="authenticated.project.certificates.new"
|
||||
newTranslationKey="certificatesPage.index.linkTo"
|
||||
}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -49,18 +49,39 @@
|
|||
groupByRef="namespace"
|
||||
sortBy=sortBy
|
||||
bulkActions=true
|
||||
headers=headers as |sortable kind row dt|}}
|
||||
headers=headers as |sortable kind row dt|
|
||||
}}
|
||||
{{#if (eq kind "row")}}
|
||||
{{registry-row model=row dt=dt}}
|
||||
{{registry-row
|
||||
model=row
|
||||
dt=dt
|
||||
}}
|
||||
{{else if (eq kind "group")}}
|
||||
{{namespace-group model=row.ref noGroup="namespaceGroup.project" fullColspan=sortable.fullColspan}}
|
||||
{{namespace-group
|
||||
model=row.ref
|
||||
noGroup="namespaceGroup.project"
|
||||
fullColspan=sortable.fullColspan
|
||||
}}
|
||||
{{else if (eq kind "nomatch")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "registriesPage.index.noMatch"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "registriesPage.index.noMatch"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{else if (eq kind "norows")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "registriesPage.index.noData"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "registriesPage.index.noData"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/sortable-table}}
|
||||
{{else}}
|
||||
{{empty-table disabled=(rbac-prevents resource="dockercredential" scope="project" permission="create") resource="container" newRoute="authenticated.project.registries.new" newTranslationKey="registriesPage.index.linkTo"}}
|
||||
{{empty-table
|
||||
disabled=(rbac-prevents resource="dockercredential" scope="project" permission="create")
|
||||
resource="container"
|
||||
newRoute="authenticated.project.registries.new"
|
||||
newTranslationKey="registriesPage.index.linkTo"
|
||||
}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -49,18 +49,39 @@
|
|||
sortBy=sortBy
|
||||
bulkActions=true
|
||||
descending=descending
|
||||
headers=headers as |sortable kind row dt|}}
|
||||
headers=headers as |sortable kind row dt|
|
||||
}}
|
||||
{{#if (eq kind "row")}}
|
||||
{{secret-row model=row dt=dt}}
|
||||
{{secret-row
|
||||
model=row
|
||||
dt=dt
|
||||
}}
|
||||
{{else if (eq kind "group")}}
|
||||
{{namespace-group model=row.ref noGroup="namespaceGroup.project" fullColspan=sortable.fullColspan}}
|
||||
{{namespace-group
|
||||
model=row.ref
|
||||
noGroup="namespaceGroup.project"
|
||||
fullColspan=sortable.fullColspan
|
||||
}}
|
||||
{{else if (eq kind "nomatch")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "secretsPage.index.noMatch"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "secretsPage.index.noMatch"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{else if (eq kind "norows")}}
|
||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t "secretsPage.index.noData"}}</td></tr>
|
||||
<tr>
|
||||
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">
|
||||
{{t "secretsPage.index.noData"}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/sortable-table}}
|
||||
{{else}}
|
||||
{{empty-table disabled=(rbac-prevents resource=resource scope="project" permission="create") resource="container" newRoute="authenticated.project.secrets.new" newTranslationKey="secretsPage.index.linkTo"}}
|
||||
{{empty-table
|
||||
disabled=(rbac-prevents resource=resource scope="project" permission="create")
|
||||
resource="container"
|
||||
newRoute="authenticated.project.secrets.new"
|
||||
newTranslationKey="secretsPage.index.linkTo"
|
||||
}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in New Issue