2014-02-06 09:22:10 +08:00
|
|
|
|
|
|
|
<div {{bind-attr class=":dashboard-stats :version-check versionCheck.critical_updates:critical:normal"}}>
|
|
|
|
<table class="table table-condensed table-hover">
|
|
|
|
<thead>
|
2014-06-11 01:04:31 +08:00
|
|
|
{{custom-html 'upgrade-header'}}
|
2014-02-06 09:22:10 +08:00
|
|
|
<tr>
|
|
|
|
<th> </th>
|
2014-12-09 05:35:49 +08:00
|
|
|
<th>{{i18n 'admin.dashboard.installed_version'}}</th>
|
|
|
|
<th>{{i18n 'admin.dashboard.latest_version'}}</th>
|
2014-02-06 09:22:10 +08:00
|
|
|
<th> </th>
|
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{{#unless loading}}
|
|
|
|
<tbody>
|
2014-12-09 05:35:49 +08:00
|
|
|
<td class="title">{{i18n 'admin.dashboard.version'}}</td>
|
2014-02-06 09:22:10 +08:00
|
|
|
<td class="version-number"><a {{bind-attr href="versionCheck.gitLink"}} target="_blank">{{ versionCheck.installed_version }}</a></td>
|
|
|
|
|
|
|
|
{{#if versionCheck.noCheckPerformed}}
|
|
|
|
<td class="version-number"> </td>
|
|
|
|
<td class="face">
|
|
|
|
<span class="icon critical-updates-available">☹</span>
|
|
|
|
</td>
|
|
|
|
<td class="version-notes">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="normal-note">{{i18n 'admin.dashboard.no_check_performed'}}</span>
|
2014-02-06 09:22:10 +08:00
|
|
|
</td>
|
|
|
|
{{else}}
|
|
|
|
{{#if versionCheck.staleData}}
|
2014-04-18 02:26:44 +08:00
|
|
|
<td class="version-number">{{#if versionCheck.version_check_pending}}{{ versionCheck.installed_version }}{{/if}}</td>
|
2014-02-06 09:22:10 +08:00
|
|
|
<td class="face">
|
|
|
|
{{#if versionCheck.version_check_pending}}
|
|
|
|
<span class='icon up-to-date'>☻</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="icon critical-updates-available">☹</span>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td class="version-notes">
|
|
|
|
<span class="normal-note">
|
|
|
|
{{#if versionCheck.version_check_pending}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'admin.dashboard.version_check_pending'}}
|
2014-02-06 09:22:10 +08:00
|
|
|
{{else}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'admin.dashboard.stale_data'}}
|
2014-02-06 09:22:10 +08:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
{{else}}
|
|
|
|
<td class="version-number">{{ versionCheck.latest_version }}</td>
|
|
|
|
<td class="face">
|
|
|
|
{{#if versionCheck.upToDate }}
|
|
|
|
<span class='icon up-to-date'>☻</span>
|
|
|
|
{{else}}
|
|
|
|
<span {{bind-attr class=":icon versionCheck.critical_updates:critical-updates-available:updates-available"}}>
|
|
|
|
{{#if versionCheck.behindByOneVersion}}
|
|
|
|
☺
|
|
|
|
{{else}}
|
|
|
|
☹
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td class="version-notes">
|
|
|
|
{{#if versionCheck.upToDate }}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'admin.dashboard.up_to_date'}}
|
2014-02-06 09:22:10 +08:00
|
|
|
{{else}}
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="critical-note">{{i18n 'admin.dashboard.critical_available'}}</span>
|
|
|
|
<span class="normal-note">{{i18n 'admin.dashboard.updates_available'}}</span>
|
|
|
|
{{i18n 'admin.dashboard.please_upgrade'}}
|
2014-02-06 09:22:10 +08:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</tbody>
|
|
|
|
{{/unless}}
|
|
|
|
</table>
|
|
|
|
</div>
|