summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
blob: f714a63ae63fd1e1ac37a53195940e74d85abbb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 %}