From eb1c59c6b234938d7ee1cbfe77b8bd6e19ab8515 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 2 Mar 2019 16:07:10 -0800 Subject: macro-ify more entity view; fix release lists --- python/fatcat_web/templates/creator_view.html | 28 +++------------------------ 1 file changed, 3 insertions(+), 25 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 16f74f0a..0ddb6899 100644 --- a/python/fatcat_web/templates/creator_view.html +++ b/python/fatcat_web/templates/creator_view.html @@ -31,37 +31,15 @@ {% endif %} -{% if creator.extra != None %} -

Extra Metadata (raw JSON)

- - - {% for (key, value) in release.extra.items() %} - - -
{{ key }}{{ value }} - {% endfor %} -
+{% if entity.extra != None %} + {{ entity_macros.extra_metadata(entity.extra) }} {% endif %}

Releases

{% if releases != [] %}

This creator has contributed to: - - - {% for release in releases %} - -
- {% if release.release_date %}{{ release.release_date }}{% elif release.release_year %}{{ release.release_year }}{% endif %} - - {{ release.title }} -
{{ release.release_type or "unknown" }} - {{ release.release_status or "unknown" }} - {% if release.license_slug %} - {{ release.license_slug }}{% endif %} - {% if release.doi %} -
doi:{{ release.doi }} - {% endif %} - {% endfor %} -
+ {{ entity_macros.release_list(releases) }} {% else %} This creator has not contributed to any releases. {% endif %} -- cgit v1.2.3