Switch to random image as start page.
This commit is contained in:
parent
3efeedb7ba
commit
d7df704327
4 changed files with 14 additions and 6 deletions
32
templates/browse_index.html
Normal file
32
templates/browse_index.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Wikidata painting depicts{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="m-3">
|
||||
<p><a href="{{ url_for('random_painting') }}">random painting</a>
|
||||
|
||||
{% if not username %}
|
||||
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% if username %}
|
||||
<p>username: {{ username }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if not username %}
|
||||
<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 %}
|
||||
|
||||
<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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue