PushingScores/templates/diverge.html

29 lines
732 B
HTML
Raw Permalink Normal View History

{% extends "layout.html" %}
2019-04-16 17:03:28 +02:00
{% block content %}
<div class="diversionpage content-block">
2019-05-29 11:54:46 +02:00
2019-05-27 17:32:05 +02:00
<div class="diverge_all">
2019-05-28 15:45:45 +02:00
<p>Sentences that have <i>{{ searchterm }}</i> in common : </p><br>
2019-04-16 18:53:21 +02:00
{% for word in wordlist_dict %}
2019-04-17 14:44:14 +02:00
{% if searchterm == word %}
{% set length_d = wordlist_dict[word]|length %}
2019-05-27 17:32:05 +02:00
<div class="diverge_list">
2019-04-17 14:44:14 +02:00
{% for item in wordlist_dict[word] %}
{% set address = "/description?id=" + item['id'] %}
2019-05-28 15:45:45 +02:00
<a href={{address}} class="diverge">
2019-04-17 14:44:14 +02:00
{{ item['sentence'] }}
2019-05-28 15:45:45 +02:00
</a><br>
<span class="folder-corner">└ from {{ item['id'] }} — {{index_dict[ item['id'] ]}}</span>
<br><br><br>
2019-04-17 14:44:14 +02:00
{% endfor %}
2019-05-27 17:32:05 +02:00
</div>
2019-04-16 18:53:21 +02:00
{% endif %}
{% endfor %}
2019-05-29 11:54:46 +02:00
</div>
2019-05-27 17:32:05 +02:00
</div>
2019-04-16 17:03:28 +02:00
{% endblock %}