From ec0d7f3b50390c2b9140ea954787d365b8d225ae Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 1 Mar 2019 15:48:10 -0800 Subject: make 'Fatcat Bits' a macro --- python/fatcat_web/templates/work_view.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'python/fatcat_web/templates/work_view.html') diff --git a/python/fatcat_web/templates/work_view.html b/python/fatcat_web/templates/work_view.html index 9a560ae4..b81293ce 100644 --- a/python/fatcat_web/templates/work_view.html +++ b/python/fatcat_web/templates/work_view.html @@ -1,4 +1,7 @@ +{% set entity = work %} +{% import "entity_macros.html" as entity_macros %} {% extends "base.html" %} + {% block fullbody %}
@@ -65,19 +68,10 @@ pre-print and a published article may contain small differences, but still reference the same underlying "work".
-
-
-Fatcat Bits -

State is "{{ work.state }}". Revision: -
{{ work.revision }} -
As JSON object via API +

-
- +{{ entity_macros.fatcat_bits(entity, "work", "") }}
-- cgit v1.2.3