summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_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/container_view.html
parentddd5912a825ef42670cf164cf64989072bb57e5f (diff)
downloadfatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.tar.gz
fatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.zip
make 'Fatcat Bits' a macro
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r--python/fatcat_web/templates/container_view.html16
1 files changed, 5 insertions, 11 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index c19d8c1c..3e69be34 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -1,4 +1,7 @@
+{% set entity = container %}
+{% import "entity_macros.html" as entity_macros %}
{% extends "base.html" %}
+
{% block fullbody %}
<div class="ui stackable mobile reversed grid centered">
@@ -126,19 +129,10 @@ Raw Object:
{% if not container.wikidata_qid %}
<br><a href="https://www.wikidata.org/w/index.php?search={{ container.name }}">wikidata.org</a>
{% endif %}
-</div><div class="ui segment attached">
-
-<b>Fatcat Bits</b>
-<p>State is "{{ container.state }}". Revision:
-<br><small><code>{{ container.revision }}</code></small>
-<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/container/{{ container.ident }}">As JSON object via API</a>
-
-</div>
-<div class="two ui buttons bottom attached">
- <a href="/container/{{ container.ident }}/edit" class="ui blue button">Edit Metadata</a>
- <a href="/container/{{ container.ident }}/history" class="ui button">View History</a>
</div>
+{{ entity_macros.fatcat_bits(entity, "container", "") }}
+
</div>
</div>