|
@@ -1,63 +1,23 @@
|
|
|
-<!doctype html>
|
|
|
-<html lang="en">
|
|
|
- <head>
|
|
|
- <meta charset="utf-8" />
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
- <meta name="robots" content="index, follow" />
|
|
|
- <link rel="stylesheet" href="{{ url_for('static', path='css/main.css') }}" />
|
|
|
- <link rel="icon" type="image/png" href="{{ url_for('static', path='img/favicon.png') }}" />
|
|
|
- <title>{{ site_title }}</title>
|
|
|
- <meta name="description" content="{{ site_description }}" />
|
|
|
-
|
|
|
- <meta property="og:url" content="{{ request.url }}" />
|
|
|
- <meta property="og:type" content="website" />
|
|
|
- <meta property="og:title" content="{{ site_title }}" />
|
|
|
- <meta property="og:description" content="{{ site_description }}" />
|
|
|
- <meta property="twitter:domain" content="{{ request.url.hostname }}" />
|
|
|
- <meta property="twitter:url" content="{{ request.url }}" />
|
|
|
- <meta name="twitter:title" content="{{ site_title }}" />
|
|
|
- <meta name="twitter:description" content="{{ site_description }}" />
|
|
|
- </head>
|
|
|
- <body>
|
|
|
- <div style="text-align: center">
|
|
|
- <a href="/">
|
|
|
- <img src="{{ url_for('static', path='img/logo.png') }}" />
|
|
|
- </a>
|
|
|
- <form id="search" role="search" method="get" action="/define.php">
|
|
|
- <input
|
|
|
- autocomplete="off"
|
|
|
- type="search"
|
|
|
- id="term"
|
|
|
- name="term"
|
|
|
- placeholder="Search"
|
|
|
- aria-label="Search"
|
|
|
- autofocus
|
|
|
- />
|
|
|
- <button>Go</button>
|
|
|
- </form>
|
|
|
- <a href="/random.php">Random</a>
|
|
|
- <br />
|
|
|
- <a href="https://git.vern.cc/cobra/rural-dict">Source Code</a>
|
|
|
- </div>
|
|
|
- <br />
|
|
|
- {% 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|safe }}</span>
|
|
|
- <span title="thumbs down">👎{{ thumbs_down|safe }}</span>
|
|
|
- </p>
|
|
|
- {% endif %}
|
|
|
- </div>
|
|
|
- <br />
|
|
|
- {% endfor %} {% if pagination %}{{ pagination|safe }} {% endif %}
|
|
|
- </body>
|
|
|
-</html>
|
|
|
+{% 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 | safe }}</span>
|
|
|
+ <span title="thumbs down">👎{{ thumbs_down | safe }}</span>
|
|
|
+ </p>
|
|
|
+ {% endif %}
|
|
|
+</div>
|
|
|
+<br />
|
|
|
+{% endfor %}
|
|
|
+{% if pagination %}{{ pagination | safe }}{% endif %}
|
|
|
+{% endblock %}
|