mirror of https://github.com/rancher/ui.git
Template Lint
This commit is contained in:
parent
0a58aed31b
commit
ad534686e9
|
|
@ -53,16 +53,36 @@
|
||||||
as |sortable kind row|
|
as |sortable kind row|
|
||||||
}}
|
}}
|
||||||
{{#if (eq kind "row")}}
|
{{#if (eq kind "row")}}
|
||||||
{{certificate-row model=row dt=dt}}
|
{{certificate-row
|
||||||
|
model=row
|
||||||
|
dt=dt
|
||||||
|
}}
|
||||||
{{else if (eq kind "group")}}
|
{{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")}}
|
{{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")}}
|
{{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}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
{{else}}
|
{{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}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -49,18 +49,39 @@
|
||||||
groupByRef="namespace"
|
groupByRef="namespace"
|
||||||
sortBy=sortBy
|
sortBy=sortBy
|
||||||
bulkActions=true
|
bulkActions=true
|
||||||
headers=headers as |sortable kind row dt|}}
|
headers=headers as |sortable kind row dt|
|
||||||
|
}}
|
||||||
{{#if (eq kind "row")}}
|
{{#if (eq kind "row")}}
|
||||||
{{registry-row model=row dt=dt}}
|
{{registry-row
|
||||||
|
model=row
|
||||||
|
dt=dt
|
||||||
|
}}
|
||||||
{{else if (eq kind "group")}}
|
{{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")}}
|
{{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")}}
|
{{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}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
{{else}}
|
{{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}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -49,18 +49,39 @@
|
||||||
sortBy=sortBy
|
sortBy=sortBy
|
||||||
bulkActions=true
|
bulkActions=true
|
||||||
descending=descending
|
descending=descending
|
||||||
headers=headers as |sortable kind row dt|}}
|
headers=headers as |sortable kind row dt|
|
||||||
|
}}
|
||||||
{{#if (eq kind "row")}}
|
{{#if (eq kind "row")}}
|
||||||
{{secret-row model=row dt=dt}}
|
{{secret-row
|
||||||
|
model=row
|
||||||
|
dt=dt
|
||||||
|
}}
|
||||||
{{else if (eq kind "group")}}
|
{{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")}}
|
{{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")}}
|
{{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}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
{{else}}
|
{{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}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue