From 29645fd07086d0b10c8a645d204487f1d2b6b03e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Apr 2019 18:41:42 -0700 Subject: basic annotation view/create --- python/fatcat_web/templates/editgroup_view.html | 58 ++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 6 deletions(-) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/editgroup_view.html b/python/fatcat_web/templates/editgroup_view.html index 37771273..2f61671d 100644 --- a/python/fatcat_web/templates/editgroup_view.html +++ b/python/fatcat_web/templates/editgroup_view.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% import "entity_macros.html" as entity_macros %} + {% block body %} {% macro edit_list(edits, entity_type, entity_name) -%} @@ -37,13 +39,13 @@ {% block editgroupheader %} {% if not editgroup.changelog_index %}
- {% if auth_to_accept %} + {% if auth_to.accept %}

{% endif %} - {% if auth_to_submit %} + {% if auth_to.submit %} {% if editgroup.submitted %}
@@ -67,6 +69,11 @@
editgroup {{ editgroup.editgroup_id }}
{% endblock %} +

What is an editgroup? +An editgroup is a set of entity edits, bundled together into a coherent, +reviewable bundle. +
+
Status: {% if editgroup.changelog_index %} Merged (Changelog #{{ editgroup.changelog_index }}) @@ -95,11 +102,50 @@ {{ edit_list(editgroup.edits.webcaptures, "webcapture", "Web Capture") }}

-
-

What is an editgroup? -An editgroup is a set of entity edits, bundled together into a coherent, -reviewable bundle. +

Comments and Annotations

+{% for annotation in editgroup.annotations|reverse %} +
+
+ {% if annotation.editor.is_bot %} + + {% else %} + + {% endif %} + {{ annotation.editor.username}} + {% if annotation.editor.is_admin %} + Admin + {% endif %} + at {{ annotation.created.strftime("%Y-%m-%d %H:%M:%S") }} +
+ {% if annotation.extra %} +
+ {{ entity_macros.extra_metadata(annotation.extra) }} +
+ {% endif %} +
+ {{ annotation.comment_markdown }} +
+
+{% else %} + None! +{% endfor %} + +{% if auth_to.annotate and not editgroup.changelog_index %} +
+

Add Comment

+ + +
+ +
+ +
+
+
+{% endif %} {% endblock %} -- cgit v1.2.3