Template Lint

This commit is contained in:
n313893254 2019-09-06 11:12:12 +08:00
parent 257d0e39b3
commit c5ad8086d5
1 changed files with 49 additions and 13 deletions

View File

@ -6,38 +6,72 @@
<table align="center" class="fixed no-lines">
<tr>
<th class="hidden-xs hidden-sm" style="border-bottom: 1px solid #eff2f6;">{{t 'modalAboutComponent.component'}}</th>
<th class="hidden-xs hidden-sm" style="border-bottom: 1px solid #eff2f6;">{{t 'modalAboutComponent.version'}}</th>
<th class="hidden-xs hidden-sm" style="border-bottom: 1px solid #eff2f6;">
{{t "modalAboutComponent.component"}}
</th>
<th class="hidden-xs hidden-sm" style="border-bottom: 1px solid #eff2f6;">
{{t "modalAboutComponent.version"}}
</th>
</tr>
{{#if settings.rancherVersion}}
<tr>
<td data-title="Component"><a href="https://github.com/rancher/rancher" target="_blank" rel="nofollow noopener noreferrer">{{settings.appName}}</a></td>
<td data-title="Version">{{settings.rancherVersion}}</td>
<td data-title="Component">
<a href="https://github.com/rancher/rancher" target="_blank" rel="nofollow noopener noreferrer">
{{settings.appName}}
</a>
</td>
<td data-title="Version">
{{settings.rancherVersion}}
</td>
</tr>
{{/if}}
{{#if settings.uiVersion}}
<tr>
<td data-title="Component"><a href="https://github.com/rancher/ui" target="_blank" rel="nofollow noopener noreferrer">{{t 'modalAboutComponent.ui'}}</a></td>
<td data-title="Version">{{settings.uiVersion}}</td>
<td data-title="Component">
<a href="https://github.com/rancher/ui" target="_blank" rel="nofollow noopener noreferrer">
{{t "modalAboutComponent.ui"}}
</a>
</td>
<td data-title="Version">
{{settings.uiVersion}}
</td>
</tr>
{{/if}}
{{#if settings.cliVersion}}
<tr>
<td data-title="Component"><a href="https://github.com/rancher/cli" target="_blank" rel="nofollow noopener noreferrer">{{settings.appName}} {{t 'modalAboutComponent.cli'}}</a></td>
<td data-title="Version">{{settings.cliVersion}}</td>
<td data-title="Component">
<a href="https://github.com/rancher/cli" target="_blank" rel="nofollow noopener noreferrer">
{{settings.appName}} {{t "modalAboutComponent.cli"}}
</a>
</td>
<td data-title="Version">
{{settings.cliVersion}}
</td>
</tr>
{{/if}}
{{#if settings.helmVersion}}
<tr>
<td data-title="Component"><a href="https://github.com/rancher/helm" target="_blank" rel="nofollow noopener noreferrer">{{t 'modalAboutComponent.helm'}}</a></td>
<td data-title="Version">{{settings.helmVersion}}</td>
<td data-title="Component">
<a href="https://github.com/rancher/helm" target="_blank" rel="nofollow noopener noreferrer">
{{t "modalAboutComponent.helm"}}
</a>
</td>
<td data-title="Version">
{{settings.helmVersion}}
</td>
</tr>
{{/if}}
{{#if settings.dockerMachineVersion}}
<tr>
<td data-title="Component"><a href="https://github.com/rancher/machine" target="_blank" rel="nofollow noopener noreferrer">{{t 'modalAboutComponent.machine'}}</a></td>
<td data-title="Version">{{settings.dockerMachineVersion}}</td>
<td data-title="Component">
<a href="https://github.com/rancher/machine" target="_blank" rel="nofollow noopener noreferrer">
{{t "modalAboutComponent.machine"}}
</a>
</td>
<td data-title="Version">
{{settings.dockerMachineVersion}}
</td>
</tr>
{{/if}}
<tr>
@ -63,5 +97,7 @@
</table>
<div class="footer-actions">
<button {{action "cancel"}} class="btn bg-primary">{{t 'generic.closeModal'}}</button>
<button {{action "cancel"}} class="btn bg-primary">
{{t "generic.closeModal"}}
</button>
</div>