From ddd5912a825ef42670cf164cf64989072bb57e5f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 1 Mar 2019 15:23:41 -0800 Subject: improve creator view --- python/fatcat_web/templates/creator_view.html | 67 ++++++++++++++++++--------- 1 file changed, 46 insertions(+), 21 deletions(-) (limited to 'python/fatcat_web/templates/creator_view.html') diff --git a/python/fatcat_web/templates/creator_view.html b/python/fatcat_web/templates/creator_view.html index 802ca4c9..e66fe927 100644 --- a/python/fatcat_web/templates/creator_view.html +++ b/python/fatcat_web/templates/creator_view.html @@ -13,33 +13,52 @@
-

Given ("first") name: - {% if creator.given_name != None %}{{ creator.given_name}}{% else %}None or unknown{% endif %} -

Sur ("family"/"last") name: - {% if creator.surname != None %}{{ creator.surname }}{% else %}None or unknown{% endif %} - -{% if creator.wikidata_qid != None %} -
Wikidata Entity:  {{ creator.wikidata_qid }} +{% if creator.given_name or creator.surname %} + + + + + + + +
Given name + {% if creator.given_name != None %}{{ creator.given_name}}{% else %}None or unknown{% endif %} +
Surname + {% if creator.surname != None %}{{ creator.surname }}{% else %}None or unknown{% endif %} +
{% endif %} + {% if creator.extra != None %}

Extra Metadata (raw JSON)

-{% for (key, value) in creator.extra.items() %} -{{ key }}: {{ value }}
-{% endfor %} + + + {% for (key, value) in release.extra.items() %} + + +
{{ key }}{{ value }} + {% endfor %} +
{% endif %}

Releases

{% if releases != [] %} -

This creator has contributed to: -