Spaces:
Sleeping
Sleeping
File size: 1,330 Bytes
e53c2d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
{% extends "base.html" %}
{% block title %}
<title>Text Viewer</title>
{% endblock %}
{% block content %}
<div class="pagination-container-text">
<div class="pagination-text">
<button id="prev" class="pagination-button-text" onclick="location.href='#anchor'">
Look at the citation
</button>
</div>
</div>
<div class="text-viewer">
{% if text_before_citation %}
{% for line in text_before_citation -%}
<div>{{ line }}</div>
{%- endfor %}
{% else %}
<span class="no-content">No text available</span>
{% endif %}
{% if anchor_added %}
<a id="anchor"></a>
{% endif %}
{% if citation %}
<div class="citation">
{% for line in citation -%}
<div>{{ line }}</div>
{%- endfor %}
</div>
{% else %}
<span class="no-content">No text available</span>
{% endif %}
{% if text_after_citation %}
{% for line in text_after_citation -%}
<div>{{ line }}</div>
{%- endfor %}
{% else %}
<span class="no-content">No text available</span>
{% endif %}
</div>
{% endblock %}
|