diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 13 | ||||
-rw-r--r-- | templates/book.html | 12 | ||||
-rw-r--r-- | templates/home.html | 8 |
3 files changed, 33 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..1a3935f --- /dev/null +++ b/templates/base.html @@ -0,0 +1,13 @@ +<!doctype html> +<html> +<head> + <title>flask app template</title> + <!-- <link href="/static/css/default.css" rel="stylesheet"> --> + <style type="text/css"> + <!-- local style here --> + </style> +</head> +<body> +{% block body %}{% endblock %} +</body> +</html> diff --git a/templates/book.html b/templates/book.html new file mode 100644 index 0000000..b107d99 --- /dev/null +++ b/templates/book.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block body %} + +{% if not book %} +<h1>NO BOOK FOUND :(</h1> +{% else %} +<h1>FOUND BOOK! <a href="{{book.url}}">{{book.md5sum}}</a> + +Redirecting to <a href="{{book.url}}">{{book.url}}</a>... +{% endif %} + +{% endblock %} diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..ca3e3df --- /dev/null +++ b/templates/home.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block body %} + +<a href="book" target="_blank"> +<img src="/static/aaaarg_vs_libgen.png" ismap="ismap"> +</a> + +{% endblock %} |