From ef7fafdcb664f9c419069b41d743f69382571f98 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 12 Jun 2019 19:36:10 -0700 Subject: continue large refactors of entity views - container views generic - editgroup edit deletion and re-editing - /editgroup/entity/ident views --- python/fatcat_web/templates/entity_macros.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'python/fatcat_web/templates/entity_macros.html') diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index a2b2f996..77d4ff81 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -1,7 +1,18 @@ -{% macro fatcat_bits(entity, entity_type, expand="") -%} +{% macro fatcat_bits(entity, entity_type, expand="", editgroup=None) -%} -{% if entity.state == "wip" %} +{% if entity.state == None and editgroup.editgroup_id %} +
+ Edit In Progress +

You are viewing this entity as of a specific editgroup (which may or may not have been merged yet): + {{ editgroup.editgroup_id }} +

+{% elif entity.state == None and entity.ident == None %} +
+ Revision +

You are viewing a specific revision of an entity. +

+{% elif entity.state == "wip" %}
Work In Progress

This entity has not been "accepted" into the official database yet. @@ -19,7 +30,7 @@

- Edit Metadata + Edit Metadata View History
{%- endmacro %} -- cgit v1.2.3