Now displaying book covers on the interface

This commit is contained in:
Mike Young
2019-11-17 13:21:35 -05:00
parent 9edc1f37c0
commit d55b2d4764
4 changed files with 18 additions and 5 deletions

View File

@@ -21,9 +21,9 @@
</div>
<div class="shelf">
<div class="shelf_contents" >
<ul>
<ul id="book_shelf">
{% for book in Books %}
<li>{{ book.title }} <img alt="Embedded Image" src="data:image;base64,{{ book.cover[2:-2]|bin_2_img }}" style="width:50px;height:50px;"/> </li>
<li class="shelf_item"><img alt="{{ book.title }}" src="data:image;base64,{{ book.cover | bin_2_img }}" class="book_thumb"/> </li>
{% endfor %}
</ul>
</div>