2018-05-17 03:06:23 +08:00
|
|
|
<div class="section-title">
|
|
|
|
<h2>{{i18n 'admin.dashboard.version'}}</h2>
|
|
|
|
</div>
|
2018-05-16 08:18:21 +08:00
|
|
|
<div class="dashboard-stats version-check {{if versionCheck.critical_updates 'critical' 'normal'}}">
|
2016-12-21 00:49:30 +08:00
|
|
|
|
2018-05-16 08:18:21 +08:00
|
|
|
<div class="version-number">
|
|
|
|
<h4>{{i18n 'admin.dashboard.installed_version'}}</h4>
|
2019-09-11 02:59:51 +08:00
|
|
|
<h3>{{dash-if-empty versionCheck.installed_version}}</h3>
|
2019-09-11 04:38:23 +08:00
|
|
|
{{#if versionCheck.gitLink}}
|
|
|
|
<div class="sha-link">
|
2020-03-07 00:35:18 +08:00
|
|
|
(<a href={{versionCheck.gitLink}} rel="noopener" target="_blank">{{versionCheck.shortSha}}</a>)
|
2019-09-11 04:38:23 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-05-16 08:18:21 +08:00
|
|
|
</div>
|
2015-04-24 02:50:06 +08:00
|
|
|
|
2016-08-04 03:36:41 +08:00
|
|
|
{{#if versionCheck.noCheckPerformed}}
|
2019-01-23 03:42:00 +08:00
|
|
|
<div class="version-number">
|
|
|
|
<h4>{{i18n 'admin.dashboard.latest_version'}}</h4>
|
2018-05-16 08:18:21 +08:00
|
|
|
<h3>—</h3>
|
|
|
|
</div>
|
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
2019-01-23 03:42:00 +08:00
|
|
|
<span class="icon critical-updates-available">{{d-icon "far-frown"}}</span>
|
2018-05-16 08:18:21 +08:00
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
|
|
|
<span class="normal-note">{{i18n 'admin.dashboard.no_check_performed'}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-04 03:36:41 +08:00
|
|
|
{{else}}
|
2017-11-21 17:01:27 +08:00
|
|
|
{{#if versionCheck.stale_data}}
|
2018-05-16 08:58:00 +08:00
|
|
|
<div class="version-number">
|
2019-01-23 03:42:00 +08:00
|
|
|
<h4>{{i18n 'admin.dashboard.latest_version'}}</h4>
|
2018-05-16 08:58:00 +08:00
|
|
|
<h3>{{#if versionCheck.version_check_pending}}{{dash-if-empty versionCheck.installed_version}}{{/if}}</h3>
|
|
|
|
</div>
|
2018-05-16 08:18:21 +08:00
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
2015-04-24 02:50:06 +08:00
|
|
|
{{#if versionCheck.version_check_pending}}
|
2019-01-23 03:42:00 +08:00
|
|
|
<span class='icon up-to-date'>{{d-icon "far-smile"}}</span>
|
2015-04-24 02:50:06 +08:00
|
|
|
{{else}}
|
2019-01-23 03:42:00 +08:00
|
|
|
<span class="icon critical-updates-available">{{d-icon "far-frown"}}</span>
|
2015-04-24 02:50:06 +08:00
|
|
|
{{/if}}
|
2018-05-16 08:18:21 +08:00
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
|
|
|
<span class="normal-note">
|
|
|
|
{{#if versionCheck.version_check_pending}}
|
|
|
|
{{i18n 'admin.dashboard.version_check_pending'}}
|
2015-04-24 02:50:06 +08:00
|
|
|
{{else}}
|
2018-05-16 08:18:21 +08:00
|
|
|
{{i18n 'admin.dashboard.stale_data'}}
|
2015-04-24 02:50:06 +08:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2018-05-16 08:18:21 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2018-05-16 08:58:00 +08:00
|
|
|
<div class="version-number">
|
2019-01-23 03:42:00 +08:00
|
|
|
<h4>{{i18n 'admin.dashboard.latest_version'}}</h4>
|
2018-05-16 08:58:00 +08:00
|
|
|
<h3>{{dash-if-empty versionCheck.latest_version}}</h3>
|
|
|
|
</div>
|
2018-05-16 08:18:21 +08:00
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
|
|
|
{{#if versionCheck.upToDate }}
|
2019-01-23 03:42:00 +08:00
|
|
|
<span class='icon up-to-date'>{{d-icon "far-smile"}}</span>
|
2018-05-16 08:18:21 +08:00
|
|
|
{{else}}
|
|
|
|
<span class="icon {{if versionCheck.critical_updates 'critical-updates-available' 'updates-available'}}">
|
|
|
|
{{#if versionCheck.behindByOneVersion}}
|
|
|
|
{{d-icon "meh-o"}}
|
|
|
|
{{else}}
|
2019-01-23 03:42:00 +08:00
|
|
|
{{d-icon "far-frown"}}
|
2018-05-16 08:18:21 +08:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
|
|
|
{{#if versionCheck.upToDate }}
|
|
|
|
{{i18n 'admin.dashboard.up_to_date'}}
|
|
|
|
{{else}}
|
|
|
|
<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'}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-24 02:50:06 +08:00
|
|
|
{{/if}}
|
2016-08-04 03:36:41 +08:00
|
|
|
{{/if}}
|
2018-05-16 08:18:21 +08:00
|
|
|
|
|
|
|
{{custom-html name="upgrade-header" versionCheck=versionCheck tagName="div" classNames="upgrade-header"}}
|
|
|
|
|
2015-04-24 02:50:06 +08:00
|
|
|
</div>
|