2019-09-13 17:16:37 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2019-11-25 11:49:34 +00:00
|
|
|
{% block title %}Wikidata Art Depiction Explorer{% endblock %}
|
2019-09-13 17:16:37 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="m-3">
|
2019-11-25 11:49:34 +00:00
|
|
|
<p><a href="{{ url_for('random_artwork') }}">random artwork</a>
|
2019-09-27 11:02:24 +01:00
|
|
|
|
2019-10-15 12:21:05 +01:00
|
|
|
{% if not g.user %}
|
2019-09-27 11:02:24 +01:00
|
|
|
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
2019-10-15 12:21:05 +01:00
|
|
|
{% if not g.user %}
|
2019-09-27 11:02:24 +01:00
|
|
|
<p>This tool must be connected with Wikidata to work.</p>
|
|
|
|
<p><a href="{{ url_for('start_oauth') }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
|
|
|
|
{% endif %}
|
|
|
|
|
2019-09-13 17:16:37 +01:00
|
|
|
<ul>
|
|
|
|
{% for pid, label in props.items() %}
|
|
|
|
<li><a href="{{ url_for('property_query_page', property_id=pid[1:]) }}">{{ label }}</a>
|
|
|
|
({{ pid }})
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|