mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Use Bootstrap 5 styling for all alerts
- Ensure that .sr-only is replaced with newer classes. - Ensure that icons are present for all alerts. - Use flex-box for display of icons on the left center of the alert. - .close has been renamed to .btn-close. - × is no longer required for close buttons. Tests: - Visually verify all the changes by triggering them with code changes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
ac6cca95e3
commit
62dad9336b
26 files changed
+390
-193
No files matched your search
@@ -21,6 +21,15 @@ from plinth.utils import format_lazy
|
||||
|
||||
from . import manifest, privileged
|
||||
|
||||
_alert = '''
|
||||
<div class="alert alert-warning d-flex align-items-center" role="alert">
|
||||
<div class="me-2">
|
||||
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">{}</span>
|
||||
</div>
|
||||
<div>{}</div>
|
||||
</div>
|
||||
'''
|
||||
_description = [
|
||||
_('Nextcloud is a self-hosted productivity platform which provides '
|
||||
'private and secure functions for file sharing, collaborative work, '
|
||||
@@ -36,8 +45,7 @@ _description = [
|
||||
'and legal reviews are done by the upstream project and not by '
|
||||
'Debian/{box_name}. Updates are performed following an independent '
|
||||
'cycle.'), box_name=_(cfg.box_name)),
|
||||
format_lazy('<div class="alert alert-warning" role="alert">{}</div>',
|
||||
_('This app is experimental.')),
|
||||
format_lazy(_alert, _('Caution:'), _('This app is experimental.')),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user