Refactor for templating

This commit is contained in:
Mike Young
2019-11-17 09:39:31 -05:00
parent 06a1080352
commit 99cdc60c47
4 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
{% load filters %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="/static/css/main.css" />
<title>pyShelf E-Book Server</title>
<link href="https://fonts.googleapis.com/css?family=Audiowide&display=swap" rel="stylesheet">
</head>
<body>
<div id="app">
<div class="app_header" >
<h1 class="app_hdr shadow">pyShelf</h1>
<h2 class="app_subhdr shadow">Open Source E-book Server</h2>
</div>
<div class="app_body" >
<div class="left_col">
left_col
</div>
<div class="shelf">
<div class="shelf_contents" >
<ul>
{% 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>
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="app_footer" >
<div class="python_logo" >
<img src="/static/img/py.png" id="python_logo" />
</div>
</div>
</div>
</body>
</html>