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'
+ content += 'Editor | \n'
+ if config['SEARCHABLE_FILE']:
+ content += 'Compiled | \n'.format(config['SEARCHABLE_FILE'].strip())
+ 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;