aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r--python/fatcat_web/templates/entity_macros.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
new file mode 100644
index 00000000..f714a63a
--- /dev/null
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -0,0 +1,14 @@
+
+{% macro fatcat_bits(entity, entity_type, expand="") -%}
+<div class="ui segment attached">
+ <b>Fatcat Bits</b>
+ <p>State is "{{ entity.state }}". Revision:
+ <br><small><code>{{ entity.revision }}</code></small>
+ <br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/release/{{ entity.ident }}{% if expand %}?expand={{ expand}}{% endif %}">As JSON object via API</a>
+</div>
+
+<div class="two ui buttons bottom attached">
+ <a href="/{{ entity_type }}/{{ entity.ident }}/edit" class="ui blue button">Edit Metadata</a>
+ <a href="/{{ entity_type }}/{{ entity.ident }}/history" class="ui button">View History</a>
+</div>
+{%- endmacro %}