From f5efbf1d85cffa0040235bddb4b053d75c3c6be1 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 27 Sep 2019 16:59:43 +0100 Subject: [PATCH] Ask user to connect to Wikidata account --- app.py | 1 + templates/item.html | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/app.py b/app.py index b42d4b9..25a1fd9 100755 --- a/app.py +++ b/app.py @@ -410,6 +410,7 @@ def item_page(item_id): catalog_detail=catalog_detail, labels=find_more_props, entity=item.entity, + username=get_username(), label=label, image=image, other=other, diff --git a/templates/item.html b/templates/item.html index 040c739..dfdb11e 100644 --- a/templates/item.html +++ b/templates/item.html @@ -84,6 +84,14 @@ + {% if not username %} + +

Connect with Wikidata + {% endif %} + + {% if username %}

{% raw %}
@@ -129,6 +137,7 @@
{% endraw %}
+ {% endif %}