From 9a15fee7075880d388200c6978228955a49341ea Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 18 May 2019 14:53:58 -0700 Subject: [PATCH] Add links to editor and full page in Session --- lexipython/build.py | 15 +++++++++++---- lexipython/resources/lexicon.css | 3 +++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lexipython/build.py b/lexipython/build.py index 9fc2270..4bbce95 100644 --- a/lexipython/build.py +++ b/lexipython/build.py @@ -173,12 +173,19 @@ def build_formatting_page(page): # Fill in the entry skeleton return page.format(title="Formatting", content=content) -def build_session_page(page, session_content): +def build_session_page(page, config): """ Builds the full HTML of the session page. """ - # Fill in the entry skeleton - content = "
{}
".format(session_content) + # Misc links + content = '\n' + # Session content + content += "
{}
".format(config["SESSION_PAGE"]) + return page.format(title="Session", content=content) def build_statistics_page(config, page, articles): @@ -450,7 +457,7 @@ def build_all(path_prefix, lexicon_name): f.write(build_formatting_page(page)) print(" Wrote Formatting") with open(pathto("session", "index.html"), "w", encoding="utf-8", newline='') as f: - f.write(build_session_page(page, config["SESSION_PAGE"])) + f.write(build_session_page(page, config)) print(" Wrote Session") with open(pathto("statistics", "index.html"), "w", encoding="utf-8", newline='') as f: f.write(build_statistics_page(config, page, articles)) diff --git a/lexipython/resources/lexicon.css b/lexipython/resources/lexicon.css index 988eeb4..e79734d 100644 --- a/lexipython/resources/lexicon.css +++ b/lexipython/resources/lexicon.css @@ -43,6 +43,9 @@ div#sidebar table { div.citeblock table td:first-child + td a { justify-content: flex-end; } +div.misclinks table td a { + justify-content: center; +} table a { display: flex; padding: 3px;