From 16126c5901c435ea6610eff8b7211226c6f125d5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 13 Jun 2019 17:17:22 -0700 Subject: refactor all entities to new UI style --- python/fatcat_web/templates/entity_macros.html | 29 ++++++++++++++++++-------- 1 file changed, 20 insertions(+), 9 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 1d798dfb..4b70651f 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -1,16 +1,24 @@ {% macro fatcat_bits(entity, entity_type, expand="", editgroup=None) -%} -{% 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 }} -

+{% if entity.state == None and editgroup %} +
+ {% if editgroup.changelog_index %} + Accepted Edit Version +

This is the version of the entity as of a specific merged editgroup: + {% elif editgroup.submitted %} + Submitted Edit Version +

This is a version of the entity that has been submitted for approval as part of an editgroup: + {% else %} + Edit In Progress +

This is a version of the entity that has not yet been submitted for approval, part of an editgroup: + {% endif %} + {{ editgroup.editgroup_id }} +

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

You are viewing a specific revision of an entity. +

This is a specific, static metadata record, not necessarily linked to any current entity in the catalog.

{% elif entity.state == "wip" %}
@@ -21,10 +29,13 @@
Fatcat Bits -

State is "{{ entity.state }}". +

+ {% if entity.state %} + State is "{{ entity.state }}". + {% endif %} {% if entity.state != "deleted" %} Revision: -
{{ entity.revision }} +
{{ entity.revision }} {% endif %}
As JSON object via API

-- cgit v1.2.3