Skip to content

Commit 7aaf4f9

Browse files
committed
Restyle update toast
Signed-off-by: Matt Friedman <[email protected]>
1 parent 882f61b commit 7aaf4f9

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

language/en/qi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
'TIME_SETTINGS' => 'Time settings',
302302
'TOGGLE_NAVIGATION' => 'Toggle navigation',
303303

304-
'UPDATE_AVAILABLE' => 'A new version is available.',
304+
'UPDATE_AVAILABLE' => 'An update is available.',
305305

306306
'VERSION_CHECK_TITLE' => 'QI %1$s is available. You are using QI %2$s. Click to download the latest version.',
307307

style/overall_header.twig

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@
2222
{% if U_VERSION_CHECK_URL %}
2323
<div class="toast-container position-fixed top-0 end-0 p-3 mt-5" style="z-index: 1045">
2424
<div id="qiUpdateToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
25-
<div class="toast-header">
26-
<span class="me-auto">{{ lang('UPDATE_AVAILABLE') }}</span>
25+
<div class="toast-body d-flex align-items-center justify-content-between">
26+
<span>{{ lang('UPDATE_AVAILABLE') }}</span>
27+
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger btn-sm ms-3" title="{{ VERSION_CHECK_TITLE }}">{{ lang('DOWNLOAD') }}</a>
28+
<span class="vr mx-3"></span>
2729
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
2830
</div>
29-
<div class="toast-body">
30-
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger" title="{{ VERSION_CHECK_TITLE }}">
31-
<svg class="bi text-white" width="16" height="16" fill="currentColor">
32-
<use xlink:href="{{ QI_ROOT_PATH }}style/assets/img/bootstrap-icons.svg#download"/>
33-
</svg>
34-
{{ lang('DOWNLOAD') }} &nbsp; <span class="badge rounded-pill bg-warning text-dark">{{ VERSION_CHECK_CURRENT }}</span>
35-
</a>
36-
</div>
3731
</div>
3832
</div>
3933
{% endif %}

0 commit comments

Comments
 (0)