diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-02 17:48:51 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-02 17:48:51 -0800 |
commit | 464048c7cdfa861fe8b4c78000526413a7e2e145 (patch) | |
tree | 286b209a24d15e77acbbe50d77b1085725b68bdd /python/fatcat_web/templates/entity_macros.html | |
parent | a9046843fb3105e9db826dd0fbb2dc58d9b671f4 (diff) | |
download | fatcat-464048c7cdfa861fe8b4c78000526413a7e2e145.tar.gz fatcat-464048c7cdfa861fe8b4c78000526413a7e2e145.zip |
improve/fix deleted entity view
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 2a4752f2..0fa93679 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -2,8 +2,11 @@ {% 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> + <p>State is "{{ entity.state }}". + {% if entity.state != "deleted" %} + Revision: + <br><small><code>{{ entity.revision }}</code></small> + {% endif %} <br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/release/{{ entity.ident }}{% if expand %}?expand={{ expand}}{% endif %}">As JSON object via API</a> </div> |