Skip to content

Commit

Permalink
Restyle update toast
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Nov 25, 2024
1 parent 882f61b commit 7aaf4f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion language/en/qi.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
'TIME_SETTINGS' => 'Time settings',
'TOGGLE_NAVIGATION' => 'Toggle navigation',

'UPDATE_AVAILABLE' => 'A new version is available.',
'UPDATE_AVAILABLE' => 'An update is available.',

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

Expand Down
14 changes: 4 additions & 10 deletions style/overall_header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@
{% if U_VERSION_CHECK_URL %}
<div class="toast-container position-fixed top-0 end-0 p-3 mt-5" style="z-index: 1045">
<div id="qiUpdateToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<span class="me-auto">{{ lang('UPDATE_AVAILABLE') }}</span>
<div class="toast-body d-flex align-items-center justify-content-between">
<span>{{ lang('UPDATE_AVAILABLE') }}</span>
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger btn-sm ms-3" title="{{ VERSION_CHECK_TITLE }}">{{ lang('DOWNLOAD') }}</a>
<span class="vr mx-3"></span>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger" title="{{ VERSION_CHECK_TITLE }}">
<svg class="bi text-white" width="16" height="16" fill="currentColor">
<use xlink:href="{{ QI_ROOT_PATH }}style/assets/img/bootstrap-icons.svg#download"/>
</svg>
{{ lang('DOWNLOAD') }} &nbsp; <span class="badge rounded-pill bg-warning text-dark">{{ VERSION_CHECK_CURRENT }}</span>
</a>
</div>
</div>
</div>
{% endif %}
Expand Down

0 comments on commit 7aaf4f9

Please sign in to comment.