{% extends "base.html" %} {% import "entity_macros.html" as entity_macros %} {% block body %} {% macro edit_list(auth_to, editgroup, edits, entity_type, entity_name) -%}

{{ entity_name }} Edits ({{ edits|count }})

{% for edit in edits %}
{{ entity_type }}/{{ edit.ident }} {% if edit.redirect_ident %} => redirect to {{ entity_type }}/{{ edit.redirect_ident }} {% elif not edit.revision %} deleted {% elif not edit.prev_revision %} created {% else %} updated {% endif %} [view edit] {% if auth_to.edit and not editgroup.changelog_index and not editgroup.submitted and entity_type in ('release', 'file', 'container') %} [re-edit]
{% endif %}
{% if edit.revision %} Revision: {{ edit.revision }} {% endif %} {% if edit.extra %} Extra Metadata (raw JSON) {{ entity_macros.extra_metadata(edit.extra) }} {% endif %}
{% endfor %}
{%- endmacro %} {# extended by changelog_entry #} {% block editgroupheader %} {% if not editgroup.changelog_index %}
{% if auth_to.accept %}

{% endif %} {% if auth_to.submit %} {% if editgroup.submitted %}

{% else %}
{% endif %} {% endif %}
{% endif %}

Editgroup
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 }}) {% elif editgroup.submitted %} Submitted ({{ editgroup.submitted.strftime("%Y-%m-%d %H:%M:%S") }}) {% else %} Not Submitted {% endif %}
Editor: {{ editgroup.editor.username }}
Description: {% if editgroup.description %} {{ editgroup.description }} {% else %} none {% endif %} {% if editgroup.extra %}

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(editgroup.extra) }} {% endif %}

{{ edit_list(auth_to, editgroup, editgroup.edits.releases, "release", "Release") }} {{ edit_list(auth_to, editgroup, editgroup.edits.works, "work", "Work") }} {{ edit_list(auth_to, editgroup, editgroup.edits.containers, "container", "Container") }} {{ edit_list(auth_to, editgroup, editgroup.edits.creators, "creator", "Creator") }} {{ edit_list(auth_to, editgroup, editgroup.edits.files, "file", "File") }} {{ edit_list(auth_to, editgroup, editgroup.edits.filesets, "fileset", "File Set") }} {{ edit_list(auth_to, editgroup, editgroup.edits.webcaptures, "webcapture", "Web Capture") }}

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") }} {# TODO: get individual editgroup annotation not supported yet (as JSON) #} {% if annotation.extra and annotation.extra.disposition %} {% set disp = annotation.extra.disposition %} {{ annotation.extra.disposition|capitalize }} {% endif %}
{% if annotation.extra %}
Review Metadata (raw JSON)
{{ entity_macros.extra_metadata(annotation.extra) }}
{% endif %}
{{ annotation.comment_markdown|markdown(escape=True) }}
{% else %} None! {% endfor %} {% if not editgroup.changelog_index and auth_to.annotate %}

Add Comment

Markdown is allowed

{% endif %} {% endblock %} {% block postscript %} {% endblock %}