27 lines
867 B
HTML
27 lines
867 B
HTML
{% extends "fr/base.html" %}
|
|
{% block title %}{{query}}{% endblock %}
|
|
|
|
{% block txtlist %}
|
|
<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>
|
|
{% endblock %}
|
|
|
|
{% block results %}
|
|
<h1>The results for the query "{{query}}" are:</h1>
|
|
<div id="results" class="lists">
|
|
{% if results == {} %}
|
|
<div>That word is not used in any of the manifesto's.</div>
|
|
{% else %}
|
|
{% for _, manifesto in results.items() %}
|
|
<span class="result">
|
|
<h2 class="title">{{manifesto.name}}</h2>
|
|
<span class="list">
|
|
{% for i in range(manifesto.tf) %}
|
|
<strong style="font-size:{{manifesto.tfidf * 10000}}px;">{{query}}</strong>
|
|
{% endfor %}
|
|
</span>
|
|
</span>
|
|
{% endfor %}
|
|
<hr>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %} |