Skip to content

Commit 95a97c5

Browse files
serve_page: add term_start_date to eBookConfig context dict
1 parent c1b90ba commit 95a97c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • bases/rsptx/book_server_api/routers

bases/rsptx/book_server_api/routers/books.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ async def serve_page(
402402
context = dict(
403403
request=request,
404404
course_name=course_name,
405+
term_start_date=course_row.term_start_date.isoformat(),
405406
base_course=course_row.base_course,
406407
user_id=user.username if user else "",
407408
# _`root_path`: The server is mounted in a different location depending on how it's run (directly from gunicorn/uvicorn or under the ``/ns`` prefix using nginx). Tell the JS what prefix to use for Ajax requests. See also `setting root_path <setting root_path>` and the `FastAPI docs <https://fastapi.tiangolo.com/advanced/behind-a-proxy/>`_. This is then used in the ``eBookConfig`` of :doc:`runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap/layout.html`.

0 commit comments

Comments
 (0)