rural-dict/templates/index.html

24 lines
698 B
HTML
Raw Permalink Normal View History

2024-10-05 21:01:11 +00:00
{% extends "base.html" %}
{% block content %}
{% for definition_id, word, meaning, example, contributor, thumbs_up, thumbs_down in results %}
<div data-id="{{ definition_id }}">
<a href="/define.php?term={{ word }}">
<h2>{{ word }}</h2>
</a>
<div class="underline-links">
<p>{{ meaning | safe }}</p>
<p><i>{{ example | safe }}</i></p>
</div>
<div>{{ contributor | safe }}</div>
{% if thumbs_up is not none and thumbs_down is not none %}
<p>
<span title="thumbs up">👍{{ thumbs_up }}</span>
<span title="thumbs down">👎{{ thumbs_down }}</span>
</p>
{% endif %}
</div>
<br />
{% endfor %}
{% if pagination %}{{ pagination | safe }}{% endif %}
{% endblock %}