dab-mechanic/templates/index.html
2023-09-29 14:17:56 +01:00

29 lines
596 B
HTML

{% extends "base.html" %}
{% block title %}DAB Mechanic{% endblock %}
{% block content %}
<div class="m-3">
<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 %}
<ol>
{% for enwiki, count in articles %}
<li>
<a href="{{ url_for("article_page", enwiki=enwiki) }}">{{ enwiki }}
({{ count }} links)
</li>
{% endfor %}
</ol>
</div>
{% endblock %}