mirror of
https://github.com/axllent/mailpit.git
synced 2025-04-17 12:06:22 +02:00
Chore: Update "About" modal layout when new version is available
This commit is contained in:
parent
2d44159ecc
commit
848ce11a69
@ -160,18 +160,19 @@ export default {
|
|||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<div class="row g-3">
|
||||||
<div class="alert alert-warning mb-3" v-if="mailbox.appInfo.LatestVersion == ''">
|
<div class="col-xl-6">
|
||||||
|
<div class="row g-3" v-if="mailbox.appInfo.LatestVersion == ''">
|
||||||
|
<div class="alert alert-warning mb-3">
|
||||||
There might be a newer version available. The check failed.
|
There might be a newer version available. The check failed.
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row g-3" v-else-if="mailbox.appInfo.Version != mailbox.appInfo.LatestVersion">
|
||||||
<a class="btn btn-warning d-block mb-3"
|
<a class="btn btn-warning d-block mb-3"
|
||||||
v-else-if="mailbox.appInfo.Version != mailbox.appInfo.LatestVersion"
|
|
||||||
:href="'https://github.com/axllent/mailpit/releases/tag/' + mailbox.appInfo.LatestVersion">
|
:href="'https://github.com/axllent/mailpit/releases/tag/' + mailbox.appInfo.LatestVersion">
|
||||||
A new version of Mailpit ({{ mailbox.appInfo.LatestVersion }}) is available.
|
A new version of Mailpit ({{ mailbox.appInfo.LatestVersion }}) is available.
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
<div class="row g-3">
|
|
||||||
<div class="col-xl-6">
|
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<RouterLink to="/api/v1/" class="btn btn-primary w-100" target="_blank">
|
<RouterLink to="/api/v1/" class="btn btn-primary w-100" target="_blank">
|
||||||
@ -224,7 +225,7 @@ export default {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Mailpit uptime
|
Mailpit up since
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ secondsToRelative(mailbox.appInfo.RuntimeStats.Uptime) }}
|
{{ secondsToRelative(mailbox.appInfo.RuntimeStats.Uptime) }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user