diff --git a/app/templates/about.html b/app/templates/about.html index d57fb58..8ed8990 100755 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -13,7 +13,7 @@ This digital library gathers all the books and articles floating around on the s It starts at XPUB, but can go anywhere we want it to.

-Are you interested in how this library works? Have a look at the source code in our git. +Are you interested in how this library works? Have a look at the source code in our git.

What's the deal with the stacks?

diff --git a/app/templates/show_book_detail.html b/app/templates/show_book_detail.html index 93438c3..b381c99 100755 --- a/app/templates/show_book_detail.html +++ b/app/templates/show_book_detail.html @@ -109,7 +109,7 @@

{%endif%} - +{%if res %}

Annotations for {{book.title}}:

{% for row in res%} @@ -128,6 +128,8 @@ {% endif %} {% endfor %} +{%else%}
No annotations yet for this book
+{%endif%}

{% if previousbook %} @@ -137,8 +139,4 @@ - - - - {% endblock %} diff --git a/app/views.py b/app/views.py index 3160d42..3687aee 100755 --- a/app/views.py +++ b/app/views.py @@ -111,14 +111,14 @@ def annotations(): # id = book.id annot = get_annotations() print(annot) - return render_template('annotations.html', annot=annot, books=books) + return render_template('annotations.html', annot=annot, books=books, light=light) # PDF from annotations @app.route('/annotations.pdf') def annotations_pdf(): annot = get_annotations() # Make a PDF straight from HTML in a string. - html = render_template(('annotations.html'), annot=annot) + html = render_template(('annotations.html'), annot=annot, light=light) return render_pdf(HTML(string=html)) @app.route('/viewpdf/') @@ -204,7 +204,7 @@ def show_book_by_id(id): if not book: return render_template('red_link.html', id=id, light=light) else: - return render_template('show_book_detail.html', book=book, previousbook = previousbook, nextbook = nextbook, all_instances=all_instances, name=name, annot=annot, res=res) + return render_template('show_book_detail.html', book=book, previousbook = previousbook, nextbook = nextbook, all_instances=all_instances, name=name, annot=annot, res=res, light=light)