{_esc(text)}
{display(text)}
{_esc(d["status"])} · {_esc(d["partition"])} · {issue}
', + '" + ("
".join(_esc(x) for x in d["now"].split("\n"))
- if d["now"] else '(nothing yet)')
- + "
" + ("
".join(_esc(x) for x in now.split("\n"))
+ if now else '(nothing yet)')
+ + "
empty
') H += [f'', - "{_esc(d["status"])} · {_esc(d["partition"])} · {issue}
', + "", "", ""] return H @@ -708,8 +736,13 @@ def render_dashboard(c: dict) -> str: "details.full>p{margin:.2rem 0 0}" "details.sub{margin:.6rem 0}" "ul.log{margin:.3rem 0;padding-left:1.2rem}" - "dl.where{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.3rem .8rem;margin:.4rem 0}" + "dl.where{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.3rem .8rem;margin:1rem 0;color:var(--accent)}" "dl.where dd{margin:0;min-width:0}" + ".position{display:flex;align-items:flex-start;gap:.8rem}" + ".position-text{flex:1;min-width:0}" + ".position-text h4{margin-top:.3rem}" + ".position .resume{flex:none;min-width:44px;min-height:44px;margin-top:.2rem}" + "table.runs td.what{line-height:1.6}" "@media(max-width:34rem){" "table.runs,table.runs tbody{display:block}" "table.runs thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}" diff --git a/tests/test_cortex_conductor.py b/tests/test_cortex_conductor.py index 92209773..8ffbcec0 100644 --- a/tests/test_cortex_conductor.py +++ b/tests/test_cortex_conductor.py @@ -188,7 +188,8 @@ def test_the_summary_table_has_four_narrow_columns_and_active_rows_only(skeleton def test_one_resume_chip_per_active_project_and_no_other_chips(skeleton): page = _cortex.render_dashboard(_cortex.census(skeleton)) chips = re.findall(r"