Development
This commit is contained in:
parent
278995958a
commit
acd83d1e90
1 changed files with 3 additions and 3 deletions
|
|
@ -1549,11 +1549,11 @@ def render_layout(view_id, content_html, tokens):
|
|||
+ '</ul>')
|
||||
fix_html = ''
|
||||
if fix_cmds:
|
||||
fix_items = ''.join(f'<li><code>{e(c)}</code></li>' for c in fix_cmds)
|
||||
fix_html = ('<div style="margin-top:0.5em">To fix:</div>'
|
||||
fix_items = ''.join(f'<li>Run `{e(c)}`</li>' for c in fix_cmds)
|
||||
fix_html = ('<div style="margin-top:0.5em"><strong>To fix:</strong></div>'
|
||||
f'<ul style="margin:0.25em 0;padding-left:1.25em">{fix_items}</ul>')
|
||||
content = ('<div style="width:100%">'
|
||||
'<div style="font-weight:600;margin-bottom:0.25em">Health check — problems found:</div>'
|
||||
'<div style="font-weight:600;margin-bottom:0.25em">Health check - problems found:</div>'
|
||||
+ problems_list + fix_html
|
||||
+ '</div>')
|
||||
problem_bars += f'<div class="info-bar {cls}">{content}</div>\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue