changes in annotations

This commit is contained in:
ange 2018-06-13 12:27:31 +02:00
parent 98c72b5b16
commit f75bd69d37
2 changed files with 7 additions and 10 deletions

View File

@ -8,12 +8,10 @@
{% for row in annot.rows %} {% for row in annot.rows %}
{% if 'selector' in row.target[0] %} {% if 'selector' in row.target[0] %}
<p align="right" style="font-family:archivo narrow;font-size:10px;">Book</p>
<p align="right" style="font-family:archivo narrow;font-size:14px;">{{row.uri|replace('.pdf','')|replace('http://localhost:8080/uploads/','')|replace('.','')}}</p><br>
{%for book in books%} {%for book in books%}
{%if book.file == row.uri%} {%if book.file == row.uri|replace('http://localhost:8080/uploads/','')%}
<a href="books/{{book.id}}"><p align="right" style="font-family:archivo narrow;font-size:12px;">=d=</p></a><br> <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>
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -17,16 +17,15 @@
{% for row in res %} {% for row in res %}
<p align="right" style="font-family:archivo narrow;font-size:10px;">Book</p>
<p align="right" style="font-family:archivo narrow;font-size:14px;">{{row.url|replace('.pdf','')|replace('http://localhost:8080/uploads/','')|replace('.','')}}</p><br>
{%for book in books%} {%for book in books%}
{%if book.file == row.url%} {%if book.file == row.url|replace('http://localhost:8080/uploads/','')%}
<a href="books/{{book.id}}"><p align="right" style="font-family:archivo narrow;font-size:18px;">=d=</p></a><br> <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>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<p style="font-family:archivo narrow;font-size:10px;">Extract</p> <p style="font-family:archivo narrow;font-size:10px;">Extract</p>
<div style="font-family:archivo narrow;font-family:archivo narrow;font-size:18px;"> <div style="font-family:archivo narrow;font-family:archivo narrow;font-size:18px;">
<i>"{{ row.extract }}"</i></div><br> <i>"{{ row.extract }}"</i></div><br>