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 @@ -1632,7 +1632,7 @@ def _fresh_span(fresh: dict, now_text: str, stale_text: str,
"every button from this page instead of opening GitHub — paste "
"a fine-grained token once, kept in this browser only'>"
"\U0001f511 set up one-tap</button>" if repo_url 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>PyAutoMemory Dashboard</title>
Expand Down Expand Up @@ -1668,7 +1668,7 @@ def _fresh_span(fresh: dict, now_text: str, stale_text: str,
{_html.escape(str(snapshot.get('generated') or '?'))}.</footer>
<script>{t_.JS}{_EXTRA_JS}</script>
</body></html>
"""
""")


def badge_endpoint(snapshot: dict) -> dict:
Expand Down
5 changes: 4 additions & 1 deletion tests/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,10 @@ def test_pending_filings_render_above_the_inbox_with_a_pr_link(tmp_path):
assert "Filings awaiting merge" in text
assert "compare/main...queue-filing/issue-91?expand=1" in text
assert "/issues/91" in text
assert text.index("Filings awaiting merge") < text.index("arXiv inbox")
if '<!doctype html>' in text:
assert text.index("id='filings'") < text.index("id='arxiv-inbox'")
else:
assert text.index("Filings awaiting merge") < text.index("arXiv inbox")


def test_no_filings_section_when_nothing_waits(tmp_path):
Expand Down
Loading