dab-mechanic/templates/index.html

29 lines
596 B
HTML
Raw Permalink Normal View History

2022-08-15 18:00:22 +01:00
{% extends "base.html" %}
2022-08-13 13:16:49 +01:00
2023-09-29 14:17:56 +01:00
{% block title %}DAB Mechanic{% endblock %}
2022-08-15 18:00:22 +01:00
{% block content %}
2022-08-17 13:34:17 +01:00
<div class="m-3">
2023-09-29 14:17:56 +01:00
<form>
article title:
<input name="title" value="{{ request.args.get("title", "") }}">
<button class="btn btn-sm btn-primary">go</button>
</form>
{% if title and not exists %}
<p>No article titled "{{ title }}" found in Wikipedia.</p>
{% endif %}
2022-08-17 13:34:17 +01:00
<ol>
{% for enwiki, count in articles %}
<li>
<a href="{{ url_for("article_page", enwiki=enwiki) }}">{{ enwiki }}
({{ count }} links)
</li>
2022-08-13 13:16:49 +01:00
{% endfor %}
2022-08-17 13:34:17 +01:00
</ol>
</div>
2022-08-15 18:00:22 +01:00
{% endblock %}