Add navigation bar

This commit is contained in:
Edward Betts 2019-10-15 12:21:05 +01:00
parent 1a7872b136
commit ded4b913da
4 changed files with 59 additions and 12 deletions

View file

@ -6,16 +6,12 @@
<div class="m-3">
<p><a href="{{ url_for('random_painting') }}">random painting</a>
{% if not username %}
{% if not g.user %}
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
{% endif %}
</p>
{% if username %}
<p>username: {{ username }}</p>
{% endif %}
{% if not username %}
{% if not g.user %}
<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 %}