2018-06-12 19:55:56 +02:00
{% extends 'base.html' %}
{% block main %}
< br > < br > < br >
2018-06-13 10:20:53 +02:00
2018-06-12 19:55:56 +02:00
< form style = "float:left;" action = "/search_annot" method = "GET" >
< div style = "float:left;" class = "search" >
< input type = "text" name = "query" value = "{{name}}" >
< / div >
2018-06-13 10:20:53 +02:00
< input style = "background-color: grey; color:white; font-family: archivo narrow; font-size: 18px; border: none;padding: 8px 24px;" type = "submit" value = "browse annotations" > < / input >
2018-06-12 19:55:56 +02:00
< / form >
2018-06-13 10:20:53 +02:00
< br > < br > < br >
<!-- <a href="{{ url_for('mybook_pdf')}}" style="color:#ff3300;">Get as PDF</a> --> < a href = "annotations" style = "color:#ff3300;" > All annotations< / a > < br > < br >
2018-06-12 19:55:56 +02:00
2018-06-13 10:20:53 +02:00
< h1 class = "header" > Annotations/ Extracts with: < i > {{name}}< / i > < / h1 >
2018-06-12 19:55:56 +02:00
{% for row in res %}
2018-06-13 12:27:31 +02:00
2018-06-12 19:55:56 +02:00
{%for book in books%}
2018-06-13 12:27:31 +02:00
{%if book.file == row.url|replace('http://localhost:8080/uploads/','')%}
< p align = "right" style = "font-family:archivo narrow;font-size:10px;" > Book< / p >
< a href = "books/{{book.id}}" > < p align = "right" style = "font-family:archivo narrow;font-size:18px;" > {{book.title}}< / p > < / a > < br >
2018-06-12 19:55:56 +02:00
{% endif %}
{% endfor %}
2018-06-13 10:20:53 +02:00
< p style = "font-family:archivo narrow;font-size:10px;" > Extract< / p >
2018-06-12 19:55:56 +02:00
< div style = "font-family:archivo narrow;font-family:archivo narrow;font-size:18px;" >
< i > "{{ row.extract }}"< / i > < / div > < br >
2018-06-13 10:20:53 +02:00
< p style = "font-family:archivo narrow;font-size:10px;color:#ff3300;" > Annotation< / p >
2018-06-12 19:55:56 +02:00
{%if 'https://www.youtube.com'in row.text %}
< a style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" href = "{{row.text}}" > {{row.text}}< / a > < br >
< hr >
{%elif '.jpg' in row.text%}
< img src = "{{row.text}}" alt = "" width = "400" >
< hr >
{%else%}
< div style = "font-family:archivo narrow;font-size:18px;color:#ff3300;" > {{row.text}}< / div > < br >
< hr >
{% endif %}
{% endfor %}
{% endblock %}