2018-08-31 10:26:51 +02:00
{% extends "base.html" %}
{% block title %}{{query}}{% endblock %}
2018-08-31 13:10:55 +02:00
{% block txtlist %}
2018-10-03 15:59:42 +02:00
< div id = "more-descr" > [< span class = "asterix" > *< / span > ] The algorithm is asked to not return more than 3 sentences from the same manifesto. There are more sentences that match this search query!< / div >
2018-08-31 13:10:55 +02:00
{% endblock %}
2018-08-31 10:26:51 +02:00
{% block results %}
< h1 > The results for the query "{{query}}" are:< / h1 >
< div id = "results" >
{% if results == {} %}
< div > That word is not used in any of the manifesto's.< / div >
{% else %}
{% for _, manifesto in results.items() %}
< div class = "result" >
< h2 > {{manifesto.name}}< / h2 >
< div class = "sentences" >
{% for sentence in manifesto.sentences %}
< div class = "sentence" > {{sentence}}< / div >
{% endfor %}
< / div >
< / div >
{% endfor %}
{% endif %}
< / div >
{% endblock %}