22 lines
570 B
HTML
22 lines
570 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{{query}}{% endblock %}
|
|
{% 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 %} |