Ask user to connect to Wikidata account
This commit is contained in:
parent
7a233021fd
commit
f5efbf1d85
2 changed files with 10 additions and 0 deletions
|
|
@ -84,6 +84,14 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{% if not username %}
|
||||
<div class="alert alert-info mt-4" role="alert">
|
||||
This tool must be connected with Wikidata to work.
|
||||
</div>
|
||||
<p><a href="{{ url_for('start_oauth') }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
|
||||
{% endif %}
|
||||
|
||||
{% if username %}
|
||||
<form method="POST" action="{{ url_for('save', item_id=item_id) }}">
|
||||
{% raw %}
|
||||
<div id="app" class="mt-2">
|
||||
|
|
@ -129,6 +137,7 @@
|
|||
</div>
|
||||
{% endraw %}
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="flex-shrink-1 vh-100">
|
||||
<img src="{{ image.thumburl }}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue