Browse Source

changes in annotations

ansible-setup-and-deploy
ange 6 years ago
parent
commit
f75bd69d37
  1. 8
      app/templates/annotations.html
  2. 9
      app/templates/results_annot.html

8
app/templates/annotations.html

@ -8,12 +8,10 @@
{% for row in annot.rows %}
{% 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%}
{%if book.file == row.uri%}
<a href="books/{{book.id}}"><p align="right" style="font-family:archivo narrow;font-size:12px;">=d=</p></a><br>
{%if book.file == row.uri|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>
{% endif %}
{% endfor %}

9
app/templates/results_annot.html

@ -17,16 +17,15 @@
{% 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%}
{%if book.file == row.url%}
<a href="books/{{book.id}}"><p align="right" style="font-family:archivo narrow;font-size:18px;">=d=</p></a><br>
{%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>
{% endif %}
{% endfor %}
<p style="font-family:archivo narrow;font-size:10px;">Extract</p>
<div style="font-family:archivo narrow;font-family:archivo narrow;font-size:18px;">
<i>"{{ row.extract }}"</i></div><br>

Loading…
Cancel
Save