diff --git a/docker/routlin-dash/app/config_utils.py b/docker/routlin-dash/app/config_utils.py index 2e83d3c..7319787 100644 --- a/docker/routlin-dash/app/config_utils.py +++ b/docker/routlin-dash/app/config_utils.py @@ -271,7 +271,7 @@ def _timing_status_msg(entry_ts, action_label): def _build_timing_msg(entry_ts, action_label='Configuration saved'): if not _apply_changes_immediately(): from markupsafe import Markup - return Markup(f'{action_label}. Visit Actions page to apply your changes.') + return Markup(f'{action_label}. Visit the Actions page to apply your changes.') return _timing_status_msg(entry_ts, action_label) diff --git a/docker/routlin-dash/app/view_page.py b/docker/routlin-dash/app/view_page.py index b0b6da4..dffeedc 100644 --- a/docker/routlin-dash/app/view_page.py +++ b/docker/routlin-dash/app/view_page.py @@ -1652,7 +1652,7 @@ def render_layout(view_id, content_html, tokens): timing = _format_timing(secs) text = f'{e(o_user)} has pending changes which will be applied {timing}.' if timing else f'{e(o_user)} has pending changes. The processing service is not running.' cls = 'info-bar-warning' - other_bars += f'
{text}
\n' + other_bars += f'
{text}
\n' problem_bars = '' try: @@ -1693,7 +1693,7 @@ def render_layout(view_id, content_html, tokens): fix_suffix = (f'Fix will be applied {timing}.' if timing else 'Fix pending. The processing service is not running.') else: - fix_suffix = 'Fix pending. Visit Actions page ASAP to apply fix.' + fix_suffix = 'Fix pending. Visit the Actions page ASAP to apply fix.' for sev, items in grouped.items(): if not items: continue @@ -1715,7 +1715,7 @@ def render_layout(view_id, content_html, tokens): pending_bar = '' if has_pending_alert: pending_bar = ('
' - 'You have actions pending. Please visit Actions page.' + 'You have actions pending. Please visit the Actions page.' '
\n') return (f'\n\n\n' @@ -2817,7 +2817,7 @@ def _serve_view(view_id): for category, message in get_flashed_messages(with_categories=True): variant = {'error': 'danger', 'warning': 'warning', 'success': 'success'}.get(category, 'info') msg_html = message if isinstance(message, Markup) else e(message) - flash_html += f'
{msg_html}
' + flash_html += f'
{msg_html}
' content_html = flash_html + render_items(view_def.get('items', []), tokens, view_req) return render_layout(view_id, content_html, tokens)