2020-03-11 22:30:14 +08:00
|
|
|
<div class="section-title">
|
|
|
|
<h2>
|
|
|
|
{{i18n "admin.dashboard.version"}}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="dashboard-stats version-check
|
2022-07-06 01:41:31 +08:00
|
|
|
{{if this.versionCheck.critical_updates 'critical' 'normal'}}"
|
2020-03-11 22:30:14 +08:00
|
|
|
>
|
|
|
|
<div class="version-number">
|
|
|
|
<h4>
|
|
|
|
{{i18n "admin.dashboard.installed_version"}}
|
|
|
|
</h4>
|
|
|
|
<h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{dash-if-empty this.versionCheck.installed_version}}
|
2020-03-11 22:30:14 +08:00
|
|
|
</h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.gitLink}}
|
2020-03-11 22:30:14 +08:00
|
|
|
<div class="sha-link">
|
|
|
|
(
|
2022-07-06 01:41:31 +08:00
|
|
|
<a
|
|
|
|
href={{this.versionCheck.gitLink}}
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
{{this.versionCheck.shortSha}}
|
2020-03-11 22:30:14 +08:00
|
|
|
</a>
|
|
|
|
)
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.noCheckPerformed}}
|
2020-03-11 22:30:14 +08:00
|
|
|
<div class="version-number">
|
|
|
|
<h4>
|
|
|
|
{{i18n "admin.dashboard.latest_version"}}
|
|
|
|
</h4>
|
|
|
|
<h3>
|
|
|
|
—
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
|
|
|
<span class="icon critical-updates-available">
|
|
|
|
{{d-icon "far-frown"}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
|
|
|
<span class="normal-note">
|
|
|
|
{{i18n "admin.dashboard.no_check_performed"}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{else if this.versionCheck.stale_data}}
|
2020-03-11 22:30:14 +08:00
|
|
|
<div class="version-number">
|
|
|
|
<h4>
|
|
|
|
{{i18n "admin.dashboard.latest_version"}}
|
|
|
|
</h4>
|
|
|
|
<h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.version_check_pending}}
|
|
|
|
{{dash-if-empty this.versionCheck.installed_version}}
|
2020-03-11 22:30:14 +08:00
|
|
|
{{/if}}
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.version_check_pending}}
|
2020-03-11 22:30:14 +08:00
|
|
|
<span class="icon up-to-date">
|
|
|
|
{{d-icon "far-smile"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="icon critical-updates-available">
|
|
|
|
{{d-icon "far-frown"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
|
|
|
<span class="normal-note">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.version_check_pending}}
|
2020-03-11 22:30:14 +08:00
|
|
|
{{i18n "admin.dashboard.version_check_pending"}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.dashboard.stale_data"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="version-number">
|
|
|
|
<h4>
|
|
|
|
{{i18n "admin.dashboard.latest_version"}}
|
|
|
|
</h4>
|
|
|
|
<h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{dash-if-empty this.versionCheck.latest_version}}
|
2020-03-11 22:30:14 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="version-status">
|
|
|
|
<div class="face">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.upToDate}}
|
2020-03-11 22:30:14 +08:00
|
|
|
<span class="icon up-to-date">
|
|
|
|
{{d-icon "far-smile"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span
|
|
|
|
class="icon
|
|
|
|
{{if
|
2022-07-06 01:41:31 +08:00
|
|
|
this.versionCheck.critical_updates
|
2020-03-11 22:30:14 +08:00
|
|
|
'critical-updates-available'
|
|
|
|
'updates-available'
|
|
|
|
}}"
|
|
|
|
>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.behindByOneVersion}}
|
2020-07-17 07:26:17 +08:00
|
|
|
{{d-icon "far-meh"}}
|
2020-03-11 22:30:14 +08:00
|
|
|
{{else}}
|
|
|
|
{{d-icon "far-frown"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="version-notes">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.versionCheck.upToDate}}
|
2020-03-11 22:30:14 +08:00
|
|
|
{{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>
|
|
|
|
{{/if}}
|
2023-02-14 07:03:46 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<CustomHtml
|
|
|
|
@name="upgrade-header"
|
|
|
|
@versionCheck={{this.versionCheck}}
|
|
|
|
@tagName="div"
|
|
|
|
@classNames="upgrade-header"
|
|
|
|
/>
|
2023-02-14 07:03:46 +08:00
|
|
|
|
|
|
|
<PluginOutlet
|
|
|
|
@name="admin-upgrade-header"
|
|
|
|
@outletArgs={{hash versionCheck=this.versionCheck}}
|
|
|
|
/>
|
2020-03-11 22:30:14 +08:00
|
|
|
</div>
|