aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-12 19:36:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-12 19:38:00 -0700
commitef7fafdcb664f9c419069b41d743f69382571f98 (patch)
tree37e0f8ab5e59c5c91a05036a49c40630565aaee0 /python/fatcat_web/templates/entity_macros.html
parent13f2faaeb3f01478eba32ba22972a2a8ec07df51 (diff)
downloadfatcat-ef7fafdcb664f9c419069b41d743f69382571f98.tar.gz
fatcat-ef7fafdcb664f9c419069b41d743f69382571f98.zip
continue large refactors of entity views
- container views generic - editgroup edit deletion and re-editing - /editgroup/entity/ident views
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r--python/fatcat_web/templates/entity_macros.html17
1 files changed, 14 insertions, 3 deletions
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 %}
+<div class="ui segment pink inverted attached">
+ <b>Edit In Progress</b>
+ <p>You are viewing this entity as of a specific editgroup (which may or may not have been merged yet):
+ <b><a href="/editgroup/{{ editgroup.editgroup_id }}">{{ editgroup.editgroup_id }}</a></b>
+</div>
+{% elif entity.state == None and entity.ident == None %}
+<div class="ui segment pink inverted attached">
+ <b>Revision</b>
+ <p>You are viewing a specific revision of an entity.
+</div>
+{% elif entity.state == "wip" %}
<div class="ui segment pink inverted attached">
<b>Work In Progress</b>
<p>This entity has not been "accepted" into the official database yet.
@@ -19,7 +30,7 @@
</div>
<div class="two ui buttons bottom attached">
- <a href="/{{ entity_type }}/{{ entity.ident }}/edit" class="ui blue button">Edit Metadata</a>
+ <a href="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/{{ 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 %}