Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def _render_html(snap: dict) -> str:
"</ul></div>")
gh = repo_url(snap)
gh_link = f' · <a href="{gh}">GitHub</a>' if gh else ""
return f"""<!doctype html>
return t_.section_layout(f"""<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PyAutoGut Dashboard</title>
Expand All @@ -776,7 +776,7 @@ def _render_html(snap: dict) -> str:
{_esc(snap.get('generated') or '?')}.</footer>
<script>{t_.JS}</script>
</body></html>
"""
""")


# --- badge / state --------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions tests/fixtures/brain/board/_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ def prompt_heading(key):
def orchestration_panel(key, title, description, prompt, **kwargs):
import html
return '<section data-orchestration-panel>' + html.escape(prompt) + '</section>'


def section_layout(page, summaries=None):
"""Stand-in for Brain's HTML-only layout adapter."""
return page
Loading