aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/creator_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-01 15:48:10 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-01 15:48:10 -0800
commitec0d7f3b50390c2b9140ea954787d365b8d225ae (patch)
treef95261e7ace1898abf9256d520b086f54e257bdc /python/fatcat_web/templates/creator_view.html
parentddd5912a825ef42670cf164cf64989072bb57e5f (diff)
downloadfatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.tar.gz
fatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.zip
make 'Fatcat Bits' a macro
Diffstat (limited to 'python/fatcat_web/templates/creator_view.html')
-rw-r--r--python/fatcat_web/templates/creator_view.html16
1 files changed, 5 insertions, 11 deletions
diff --git a/python/fatcat_web/templates/creator_view.html b/python/fatcat_web/templates/creator_view.html
index e66fe927..03fcfc74 100644
--- a/python/fatcat_web/templates/creator_view.html
+++ b/python/fatcat_web/templates/creator_view.html
@@ -1,4 +1,7 @@
+{% set entity = creator %}
+{% import "entity_macros.html" as entity_macros %}
{% extends "base.html" %}
+
{% block fullbody %}
<div class="ui stackable mobile reversed grid centered">
@@ -89,19 +92,10 @@ Raw Object:
<br><a href="https://viaf.org/viaf/search?query=local.personalNames%20all%20%22{{ creator.display_name }}">VIAF</a>
<br><a href="http://dblp.uni-trier.de/search?q={{ creator.display_name }}">dblp</a> (CS)
<br><a href="https://scholar.google.com/scholar?q={{ creator.display_name }}">Google Scholar</a>
-</div><div class="ui segment attached">
-
-<b>Fatcat Bits</b>
-<p>State is "{{ creator.state }}". Revision:
-<br><small><code>{{ creator.revision }}</code></small>
-<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/creator/{{ creator.ident }}">As JSON object via API</a>
-
-</div>
-<div class="two ui buttons bottom attached">
- <a href="/creator/{{ creator.ident }}/edit" class="ui blue button">Edit Metadata</a>
- <a href="/creator/{{ creator.ident }}/history" class="ui button">View History</a>
</div>
+{{ entity_macros.fatcat_bits(entity, "creator", "") }}
+
</div>
</div>