diff --git a/compile_server/app/templates/book_list.html b/compile_server/app/templates/book_list.html
index f8d3306..58ff669 100644
--- a/compile_server/app/templates/book_list.html
+++ b/compile_server/app/templates/book_list.html
@@ -12,6 +12,7 @@
AdaCore Books
+
{% for b in books %}
- {{ b.title }}
diff --git a/compile_server/app/views.py b/compile_server/app/views.py
index 95764d5..9d54451 100644
--- a/compile_server/app/views.py
+++ b/compile_server/app/views.py
@@ -165,9 +165,12 @@ def book_router(request, book, part, chapter):
with open(content_page, 'r') as f:
htmldata['content'] = f.read()
else:
- htmldata['content'] = "# Page Under Construction"
+ with open(os.path.join(resources_base_path,
+ "under-construction.md")) as f:
+ htmldata['content'] = f.read()
else:
- htmldata['content'] = "### The page you have reached is invalid. " \
- "Please use the links at the left to navigate to a valid page."
+ with open(os.path.join(resources_base_path,
+ "invalid-page.md")) as f:
+ htmldata['content'] = f.read()
return render(request, 'readerpage.html', htmldata)
diff --git a/resources/books/invalid-page.md b/resources/books/invalid-page.md
new file mode 100644
index 0000000..879a83b
--- /dev/null
+++ b/resources/books/invalid-page.md
@@ -0,0 +1,2 @@
+# The page you have reached is invalid.
+### Please use the links at the left to navigate to a valid page.
\ No newline at end of file
diff --git a/resources/books/under-construction.md b/resources/books/under-construction.md
new file mode 100644
index 0000000..4a0e096
--- /dev/null
+++ b/resources/books/under-construction.md
@@ -0,0 +1 @@
+# Page Under Construction
\ No newline at end of file